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!

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...