Knowledge Management

What is the best way to check the sourcetype?

nathanlhopkins
Path Finder

If I have a file I wish splunk to consume what is the best way to identify it's sourcetype or closest match?

Is data preview able to help?

Tags (2)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Yep, you can throw it into the data preview to get a first idea of what splunk would make of it and to start working on the settings you need if splunk cannot understand specifics such as timestamps or event braking out of the box.

martin_mueller
SplunkTrust
SplunkTrust

There are many ways to mess up the configuration. Does the data get the correct sourcetype in the inputs.conf on the forwarder? Is the sourcetype fully defined in props.conf on the indexer?

To ease debugging, do post both configuration extracts.

0 Karma

nathanlhopkins
Path Finder

Many thanks, how obvious are these? - when I'm doing data preview I can't seem to spot any issues however when I enable the forwarder I see Failed to parse timestamp errors

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Yeah, it does.

0 Karma

nathanlhopkins
Path Finder

Many thanks - does the Data preview screen give any indication of potential "Failed to parse timestamp" errors?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...