Splunk Search

How to create a dashboard which shows Error messages in X axis with the time span & Error Count in Y axis ?

Dinesh_Raja
Path Finder

Hello All,

I have to create a real time dashboard which give insight on the different type of errors and how many such errors happen and during which part of the day. My sample log is like below (and there are lot of duplicate logs) :

"[syncservice] [ERROR] [20 Mar 2018 04:09:56,654] : [7dfhsdgw-4dgsj-ashgah-svahs5226] : [com.xxx.xxxx.xxxx.xxxx]: Failed to invoke service xxx.xxxxxx.xxxx.ConnectorException: IOException occurred for ServiceLogMessage while obtaining response: Connection to http://localhost:8080 refused"

Looking forward for your support.

0 Karma
1 Solution

renjith_nair
Legend

@Dinesh_Raja,

If you have a field for the error string (type of error) or any other field to distinguish the errors, then

index=your_index "other search strings"|timechart count by type_of_error

Reference : http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Timechart

Happy Splunking!

View solution in original post

0 Karma

renjith_nair
Legend

@Dinesh_Raja,

If you have a field for the error string (type of error) or any other field to distinguish the errors, then

index=your_index "other search strings"|timechart count by type_of_error

Reference : http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Timechart

Happy Splunking!
0 Karma

Dinesh_Raja
Path Finder

Hello @renjith.nair,
Thanks for the update.
I would request you to let me know the process to extract the field for error if it was not extracted by Splunk (I tried with field extractor but unable to extract complete sentence).

Thanks in advance.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...