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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...