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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...