Splunk Search

HELP with Search and Bar Chart...

leomedina
Explorer

Hello all,

I am trying to search on multiple values, which are not being populated in a field. And then renaming these values into "Success" or "Fail".

Thus far I have:

index=datapower sourcetype=syslog EventType=error
| stats count(eval(0x80e00110 NOT 0x01130009 NOT 0x01130024 NOT 0x00d30003 NOT 0x80c00009 NOT 0x80c00010 NOT 0x01d30001 NOT 0x84e00032 NOT 0x80e00791="Fail"))
| stats count(eval(0x00530002 AND 0x80c00008 AND 0x80e006c1 AND 0x01130006 AND 0x80e00126 AND 0x80e00627="Success"))

I keep getting an error and can't see anything 😞

Sincerely appreciate the help.

Also how do I display this in a side bar graph?

0 Karma
1 Solution

hhGA
Communicator

Hi leomedina,

Seeing as you have 0x80e00791="Fail", I'm assuming that 0x80e00110, 0x01130009 etc are field names.

Instead of eval(0x80e00110 NOT 0x01130009 NOT 0x01130024) try using eval(isNull(0x80e00110) AND isNull(0x01130009) AND isNull(0x01130024)) instead.

When you have the data correct, click on 'Vizualisation' to see the chart views.

Let me know if there are any issues.

View solution in original post

hhGA
Communicator

Hi leomedina,

Seeing as you have 0x80e00791="Fail", I'm assuming that 0x80e00110, 0x01130009 etc are field names.

Instead of eval(0x80e00110 NOT 0x01130009 NOT 0x01130024) try using eval(isNull(0x80e00110) AND isNull(0x01130009) AND isNull(0x01130024)) instead.

When you have the data correct, click on 'Vizualisation' to see the chart views.

Let me know if there are any issues.

leomedina
Explorer

hhGA... You, my friend, are a genius... I am getting the data I needed...

| eval (0x00530002) OR (0x80c00008) OR (0x80e006c1) OR (0x01130006) OR (0x80e00126) OR (0x80e00627)="Success"   
| eval isNull(0x80e00110) AND isNull(0x01130009) isNull(0x01130024) isNull(0x00d30003) isNull(0x80c00009) isNull(0x80c00010) isNull(0x01d30001)  isNull(0x84e00032) isNull(0x80e00791)="Errors" 

Thanks!

0 Karma

aaraneta_splunk
Splunk Employee
Splunk Employee

@leomedina - Glad to hear hhGA's answer helped answer your question. Please don't forget to resolve this post by clicking "Accept" so that other users can easily find it too. Thanks!

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...