Splunk Search

HELP with Search and Bar Chart...

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

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

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

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

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
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!