The "Set Sourcetype" page
The "Set Sourcetype" page lets you improve event processing by previewing how Splunk Enterprise indexes your data. You can use this page to make sure that Splunk Enterprise indexes your data exactly as you want it to appear.
How does it work?
It does not appear when:
- You forward data from another Splunk instance such as a heavy or universal forwarder.
- You specify a network input as a data source.
- You specify a directory as a data source.
On the "Set Sourcetypes" page, you can easily make adjustments to how Splunk Enterprise eventually indexes your data. You can adjust and improve the indexing process interactively so that when Splunk Enterprise later performs the actual indexing, your event data ends up stored in the exact format you want.
Use the "Set Sourcetypes" page
When this page loads, Splunk Enterprise chooses a source type based on the data you specified. You can accept that recommended source type or change it.
Here is an example of the "Set Sourcetype" page:
View or change the recommended source type
You can view how Splunk Enterprise plans to break the data in your file into events. If the proposed indexing does not suit your needs, you can choose a different source type or create a new one by clicking the Sourcetype: New Sourcetype button. See "View and set source types for event data."
View event summary
You can see a summary of the events within the data sample that Splunk Enterprise collected by clicking the "View Event Summary" link on the right side of the page. This summary shows the following information:
- The size of the sample data, in bytes, that Splunk Enterprise gathered.
- The number of events that were present in the sample.
- The chart that represents the distribution of the events over time. Splunk Enterprise uses date stamps within the file to determine how to display this chart.
- A breakdown of the number of lines each event in the sample took up.
Adjust time stamps and event breaks
You can adjust how Splunk Enterprise processes timestamps and event breaks. Once the results suit you, you can save your changes as a new source type, which you can then apply to the actual data. See "Assign the right source type to your data" for details.
When you select a structured data file, such as a comma-separated values (CSV), tab-separated values (TSV), or similar file, the "Delimited settings" bar appears. This window lets you adjust settings related to how Splunk Enterprise parses these structured data files. You can adjust:
- The field delimiter - the character that Splunk Enterprise uses to separate the data into fields.
- The quote character - the character that Splunk Enterprise uses to determine when something is within quotes.
- The file preamble - a regular expression that tells Splunk Enterprise to ignore preamble lines within the structure data file.
- Field names - how Splunk Enterprise determines field names: automatically, by line number, custom entry, or regular expression.
Assign the right source type to your data
This documentation applies to the following versions of Splunk® Enterprise: 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.2.5, 6.2.6, 6.2.7, 6.2.8, 6.2.9, 6.2.10, 6.2.11, 6.2.12, 6.2.13, 6.2.14, 6.2.15