Splunk Search

Checking log if some values exist

ivana27
Path Finder

Hello Splunkers,

please help.

I have two types of search result and i want to make alert only when 1.) occured:

1.) 2021-05-18 13:15:46.433 [Information] Downtime start:18/05/2021 11:15:46.431 sdsSrv:NotAvailable...

2.)2021-05-18 11:23:46.285 [Information] Downtime start:18/05/2021 06:05:29.241, end:18/05/2021 09:23:46.278

So, how to make search where i will get those results containing log with 'Downtime start' and not ones with 'end'

Thank you

Labels (3)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @ivana27,

you have to run a simple search like the following:

index=your_index "Downtime start" NOT "end"
| ...

or

index=your_index "Downtime start" "sdsSrv:NotAvailable"
| ...

The second one is more performant because a positive condition is always quicker than a negative condition.

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @ivana27,

you have to run a simple search like the following:

index=your_index "Downtime start" NOT "end"
| ...

or

index=your_index "Downtime start" "sdsSrv:NotAvailable"
| ...

The second one is more performant because a positive condition is always quicker than a negative condition.

Ciao.

Giuseppe

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...