Getting Data In

sourcetype gets "-2" added?

mikelanghorst
Motivator

After setting a rather simple props entry for sourcetype [sharepoint] for our log to break events only after datestamp\s and not datestamp* to keep multiple line messages together. I then input a file via oneshot specifying -sourcetype=sharepoint.

Now when looking at the data, I've got data with sourcetype=sharepoint-2.

What's causing this and how can I prevent it?

Tags (1)
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

What might the name of your file be? There are some file patterns that Splunk tries to generate a CSV header for. You can see this in the default props.conf if you look for CHECK_FOR_HEADER. You probably want to disable/override this.

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

What might the name of your file be? There are some file patterns that Splunk tries to generate a CSV header for. You can see this in the default props.conf if you look for CHECK_FOR_HEADER. You probably want to disable/override this.

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...