Splunk® Enterprise

Getting Data In

Download manual as PDF

Splunk Enterprise version 6.x is no longer supported as of October 23, 2019. See the Splunk Software Support Policy for details. For information about upgrading to a supported version, see How to upgrade Splunk Enterprise.
This documentation does not apply to the most recent version of Splunk. Click here for the latest version.
Download topic as PDF

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?

The Set Sourcetype page appears after you use the "Upload" or "Monitor" pages to specify a single file as a source of data.

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.

In those cases, the "Modify input settings" page appears instead. With some advance planning, you can use this page for those input types as well. See "Prepare your data".

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:

62 datapreview.png

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.

62 datapreview eventsummary.png

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.

Delimited settings

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.

62 datapreview delimitedsettings.png

Last modified on 21 May, 2015
Forward data
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

Was this documentation topic helpful?

Enter your email address, and someone from the documentation team will respond to you:

Please provide your comments here. Ask a question or make a suggestion.

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

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters