Splunk Search

Field Extraction identification

mcm10285
Communicator

Is there a way to determine which field extraction (transforms or search rex) was used for a specific sourcetype?

0 Karma
1 Solution

stefano_guidoba
Communicator

Hi,

by default Splunk provides some basic extractions/transformations on certain sourcetypes. You can find them in

$SPLUNK_HOME/etc/system/default/props.conf
$SPLUNK_HOME/etc/system/default/transforms.conf

If you have not specified any custom sourcetype, you should check there to see if there's already something.
You can eventually apply modification to that sourcetypes and put them in

$SPLUNK_HOME/etc/system/local/props.conf
$SPLUNK_HOME/etc/system/local/transforms.conf

Stefano

View solution in original post

0 Karma

stefano_guidoba
Communicator

Hi,

by default Splunk provides some basic extractions/transformations on certain sourcetypes. You can find them in

$SPLUNK_HOME/etc/system/default/props.conf
$SPLUNK_HOME/etc/system/default/transforms.conf

If you have not specified any custom sourcetype, you should check there to see if there's already something.
You can eventually apply modification to that sourcetypes and put them in

$SPLUNK_HOME/etc/system/local/props.conf
$SPLUNK_HOME/etc/system/local/transforms.conf

Stefano

0 Karma

mcm10285
Communicator

btool looks to be it, will try it out...thanks!

0 Karma

stefano_guidoba
Communicator

a quicker way to check that type of mapping is to use btool from CLI.

http://docs.splunk.com/Documentation/Splunk/5.0.2/Troubleshooting/Usebtooltotroubleshootconfiguratio...

Also, you can install S.o.S. app and have a way to use btool from UI.

mcm10285
Communicator

So I guess what you're saying is to go through the props.conf files from different apps and check what configurations are assigned to which sourcetypes?

Is there no way to check that could easily map sourcetype/source/index/etc and props.conf files they are included in? something like.....

SOURCETYPE props location
foo1 $SPLUNK_HOME/etc/apps/app1/local/props.conf
foo2 $SPLUNK_HOME/etc/apps/app2/default/props.conf

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Keep the Learning Going with the New Best of .conf Hub

Hello Splunkers, With .conf26 getting closer, there’s already a lot of excitement building around this year’s ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

How to find the worst searches in your Splunk environment and how to fix them

Everyone knows Splunk is a powerful platform for running searches and doing data analytics. Your ...