Admin Manual

 


How Splunk Works

Set a source type for a source

This documentation does not apply to the most recent version of Splunk. Click here for the latest version.

Set a source type for a source

Use these instructions if you need to assign a sourcetype based on a source.


This will only impact new data coming in following your configuration change. If you want to correct the sourcetype displayed in SplunkWeb for data that has already been indexed, you will need to create an alias instead.


via configuration files

Create a stanza for your source in $SPLUNK_HOME/etc/bundles/local/props.conf and set a sourcetype = attribute:


[source::.../var/log/anaconda.log(.\d+)?]
sourcetype = anaconda 

This will set any events from sources containing the string /var/log/anaconda.log followed by any number of numeric characters to sourcetype::anaconda.


Learn more about props.conf.

This documentation applies to the following versions of Splunk: 3.0.1 , 3.0.2 , 3.1 , 3.1.1 , 3.1.2 , 3.1.3 , 3.1.4 View the Article History for its revisions.


You must be logged into splunk.com in order to post comments. Log in now.

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.

Feedback submitted, thanks!