Splunk Enterprise

How to check whether props.conf is there for my sourcetype?

mahesh27
Communicator

Hi All,
how can i know whether props has been defined to particular sourcetype.
how can i check it.

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

There are a couple of REST commands you can try

| rest /servicesNS/-/-/configs/conf-props | search sourcetype=foo

If the sourcetype defines field extractions then try 

| rest /servicesNS/-/-/data/props/extractions | search stanza=foo

 

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

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Go to Settings->Source types and search for the expected sourcetype.  If it's there then props are defined.

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

mahesh27
Communicator

Hi @richgalloway , i could not see any option with name source type under settings.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Then you don't have the proper permissions.  You'll have to ask an admin to check for you.  There are other methods, but they also require higher permissions.

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

mahesh27
Communicator

HI @richgalloway okay, but can you please tell me what are the other methods tocheck.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

There are a couple of REST commands you can try

| rest /servicesNS/-/-/configs/conf-props | search sourcetype=foo

If the sourcetype defines field extractions then try 

| rest /servicesNS/-/-/data/props/extractions | search stanza=foo

 

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

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...