Getting Data In

Inline field extracted vs Transformation?

cmeyers
Explorer

I am walking through the Cisco app and I noticed that there are a lot different ways fields are being extracted. It looks like there are many inline extractions and others referencing a transform, all in the props.conf, (EXTRACT vs REPORT). I have seen bits and pieces on what is the difference is between the two methods, but it still is unclear to me.

My question is, what are the pros and cons of doing an inline EXTRACT versus doing a transformation and reference it with a REPORT in the props. conf, and vice versa.

1 Solution

woodcock
Esteemed Legend

They are the same except that EXTRACT is inlined so only exists in props.conf whereas REPORT is 2-part with half in props.conf and the other half in transforms.conf. If later extractions depend on other extractions, you should definitely use REPORT so that you can clearly control which ones happen first. Also, if you have the same extractions for multiple sourcetypes, it is easier to have a single copy in transforms.conf so that any changes/fixes to it are done on 1 line in 1 file instead of on multiple lines in multiple files. Honestly, EXTRACT is lazy; I always do REPORT; I cannot think of any real advantage to EXTRACT.

View solution in original post

woodcock
Esteemed Legend

They are the same except that EXTRACT is inlined so only exists in props.conf whereas REPORT is 2-part with half in props.conf and the other half in transforms.conf. If later extractions depend on other extractions, you should definitely use REPORT so that you can clearly control which ones happen first. Also, if you have the same extractions for multiple sourcetypes, it is easier to have a single copy in transforms.conf so that any changes/fixes to it are done on 1 line in 1 file instead of on multiple lines in multiple files. Honestly, EXTRACT is lazy; I always do REPORT; I cannot think of any real advantage to EXTRACT.

rita201
Loves-to-Learn

Please in better understanding, what is the actual difference between prof.conf and transforms.conf file?

0 Karma

woodcock
Esteemed Legend

I never heard of prof.conf but in any case, you should ask your own new question.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...

Want to Reduce Costs, Mitigate Risk, Improve Performance, or Increase Efficiencies? ...

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

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...