Splunk Search

How can I apply split and regex TSV at the same time?

max8006
Explorer

Hi,
I have logs separated by a tab. I have defined FIELD_DELIMITER=tab, INDEXED_EXTRACTIONS=tsv FIELD_NAMES etc in props.conf accordingly. I now need to extract more fields in one of the fields using regex. What is the most sensible and efficient way to do this? Is it possible to do this in props.conf at the same time when tsv splitting happening? Or is there only the possibility to use "rex field=" @ searchtime

BR
Max

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @max8006,

I usually use INDEXED_EXTRACTIONS = csv in props.conf.

Then if I need to extract other fields as part of one already extracted field, I use a regex at search time, using the option "field" in the regex.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...