All Apps and Add-ons

Can Splunk extract more than 6 regular expression in the same time?

royimad
Builder

Hello Splunk experts,

Can Splunk extract more then 6 regular expression in the same time?

Example:
sourcetype="imap"
| rex field=_raw "(?ms)(?Total.)^"
| rex field=capture "-(?.
)"
| rex field=dash "-(?.)"
| rex field=seconddash "-(?.
)"
| rex field=thirddash "-(?.)"
| rex field=fourthdash "-(?.
)"
| rex field=fifthdash "-(?.)"
| rex field=sixdash "-(?.
)"

The sevendash field is not appearing while i need to continue till the end and choose the last fields.

0 Karma

rdownie
Communicator

I am not exactly sure what you are trying to accomplish here. Can you show a sample of the raw event this would go against?


Would it be easier to do the regex all in one rex command?


Does the event have "-" seperated fields? If so, would it make sense to use a transform using DELIMS?


You can extract more than 6 fields.

0 Karma

rturk
Builder

Can you give a redacted sample of the events you're attempting to parse - the way you've approached this doesn't seem ideal...

0 Karma
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 ...