Splunk Enterprise

How to know sourcetype defined

Ash1
Communicator

I have some logs coming into splunk and there are parsing correctly without any issues

Index= xxx sourcetype=splunk-logs

But now the logs time zone changed now i have to update the time zone in props.conf

So where can I find this existing sourcetype=splunk-logs in splunk

 

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Use btool

 

splunk btool --debug props list splunk-logs

 

It will display all of the props for the sourcetype along with the file name in which the prop is defined.

Remember, never change $SPLUNK_HOME/etc/system/default/props.conf and change $SPLUNK_HOME/etc/apps/*/default/props.conf only if it's your app.  Otherwise, put the change in local/props.conf.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Use btool

 

splunk btool --debug props list splunk-logs

 

It will display all of the props for the sourcetype along with the file name in which the prop is defined.

Remember, never change $SPLUNK_HOME/etc/system/default/props.conf and change $SPLUNK_HOME/etc/apps/*/default/props.conf only if it's your app.  Otherwise, put the change in local/props.conf.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Buttercup Games Tutorial Extension - part 9

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Buttercup Games Tutorial Extension - part 8

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Introducing the Splunk Developer Program!

Hey Splunk community! We are excited to announce that Splunk is launching the Splunk Developer Program in ...