Splunk Search

showing chart based on Time and Transaction count

avikc100
Path Finder

this is the log data

avikc100_0-1718892426100.png

 

i want a report like this:

avikc100_1-1718892579363.png

 

 

my current query is :
index="webmethods_prd" source="/apps/WebMethods/IntegrationServer/instances/default/logs/DFO.log" |eval timestamp=strftime(_time, "%F") | stats values(B2BUnknownTrxCount) by timestamp

it giving report like this:

avikc100_2-1718892638716.png

I need to add date time in hh:mm in a chart. 
Please help to update my query

Labels (2)
0 Karma
1 Solution

macalamela
Engager

 

index="webmethods_prd" source="/apps/WebMethods/IntegrationServer/instances/default/logs/DFO.log"
| eval timestamp=strftime(_time, "%F"),hour=strftime(_time, "%H,%M") 
| stats list(hour) as hour, list(B2BUnknownTrxCount) by timestamp

View solution in original post

0 Karma

avikc100
Path Finder
index="webmethods_prd" source="/apps/WebMethods/IntegrationServer/instances/default/logs/DFO.log" |eval timestamp=strftime(_time, "%Y-%m-%d %H:00") | stats values(B2BUnknownTrxCount) by timestamp
0 Karma

macalamela
Engager

 

index="webmethods_prd" source="/apps/WebMethods/IntegrationServer/instances/default/logs/DFO.log"
| eval timestamp=strftime(_time, "%F"),hour=strftime(_time, "%H,%M") 
| stats list(hour) as hour, list(B2BUnknownTrxCount) by timestamp

0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...