Rename source types
You might want to rename a source type in certain situations. For example, say you accidentally assigned an input to the wrong source type. Or you realize that two differently named source types should be handled exactly the same at search time.
You can use the
rename attribute in
props.conf to assign events to a new source type at search time. In case you ever need to search on it, the original source type is moved to a separate field,
Note: The indexed events still contain the original source type name. The renaming occurs only at search time. Also, renaming the source type does only that; it will not fix any problems with the indexed format of your event data caused by assigning the wrong source type in the first place.
To rename the source type, add the
rename attribute to your source type stanza:
rename = <string>
For example, say you're using the source type "cheese_shop" for your application server. Then, accidentally, you index a pile of data as source type "whoops". You can rename "whoops" to "cheese_shop" with this
Now, a search on "cheese_shop" will bring up all the "whoops" events as well as any events that had a "cheese_shop" source type from the start:
If you ever need to single out the "whoops" events, you can use
_sourcetype in your search:
Important: Data from a renamed source type will only use the search-time configuration for the target source type ("cheese_shop" in this example). Any field extractions for the original source type ("whoops" in the example) will be ignored.
Create source types
This documentation applies to the following versions of Splunk® Enterprise: 4.3, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.3.6, 4.3.7, 5.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 5.0.7, 5.0.8, 5.0.9, 5.0.10, 5.0.11, 5.0.12, 5.0.13, 5.0.14, 5.0.15, 5.0.16, 5.0.17, 5.0.18