Dashboards & Visualizations

How to add 2-3 fields in single query

aditsss
Motivator

Hi Everyone,

I have one requirement.

I have two queries like this:

index=abc  ns=sidh-datagraph3 "NullPointerException"

index=abc  ns=sidh-datagraph3 "IllegalStateException"

I want to combine it in a same query.

Can someone guide me on this.

Thanks in advance

Labels (3)
0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

You should try

 

index=abc  ns=sidh-datagraph3 ("NullPointerException" OR "IllegalStateException")

 

(fixed)

r. Ismo 

View solution in original post

isoutamo
SplunkTrust
SplunkTrust

You should try

 

index=abc  ns=sidh-datagraph3 ("NullPointerException" OR "IllegalStateException")

 

(fixed)

r. Ismo 

s2_splunk
Splunk Employee
Splunk Employee

You probably want parenthesis in there:

index=abc  ns=sidh-datagraph3 ("NullPointerException" OR "IllegalStateException")
Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...