Splunk Search

How to use timechart with stats and eval command

sunnyparmar
Communicator

Hi,

My query is below -

index=abc sourcetype=xyz Unable to connect to the remote server | Stats count(eval("Unable to connect to the remote server")) as "Error" by host

In this query how can I use (timechart span=1h) function? Any suggestions would be appreciated..

Thanks

Tags (3)
0 Karma
1 Solution

woodcock
Esteemed Legend

Your eval is wrong and redundant; try this:

index=abc sourcetype=xyz Unable to connect to the remote server | timechart span=1h count AS "Error" by host

View solution in original post

woodcock
Esteemed Legend

Your eval is wrong and redundant; try this:

index=abc sourcetype=xyz Unable to connect to the remote server | timechart span=1h count AS "Error" by host

sunnyparmar
Communicator

thanks... that's cool..

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 ...