Splunk Search

How to increase the maximum number of conditions in a splunk search?

zongwei
New Member

Hi there, I have a search below:

host = xxx.xxx.xxx.xxx AND duration

| rex field=_raw (something)
| rex field=_raw (something)
| rex field=_raw (something)
| rex field=_raw (something)
| rex field=_raw (something)
| rex field=_raw (something)
| rex field=_raw (something)

| rex field=_raw (something)
| replace (something) with (something)

| rex field=_raw (something)
| replace (something) with (something)

| rex field=_raw (something)
| replace (something) with (something)

| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)

| rex field=_raw (something)
| replace (something) with (something)

| rex field=_raw (something)
| replace (something) with (something)

| rex field=_raw (something)

| rex field=_raw (something)
| rex field=_raw (something)
| rex field=_raw (something)
| rex field=_raw (something)
| rex field=_raw (something)
| rex field=_raw (something)
| rex field=_raw (something)
| replace (something) with (something)

| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| rex field=_raw (something)
| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)

// At this point, all subsequent conditions are not run anymore

| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)
| rex field=_raw (something)
| replace (something) with (something)
| search API=(something)
| rex field=_raw (something)
| sort 1 - duration

Is there a way to increase the number of conditions to enable the entire search to be done?

0 Karma

pramit46
Contributor

@zongwei
Can't you use IFX to extract the values and then use them directly in your query? It may save all those pain of writing the regex expressions.

0 Karma

zongwei
New Member

Hi @ pramit46

Would you mind to elaborate? Also, all the regex expression are to extract different information to be used in displaying, thus that many regex and replace renaming.

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...