Splunk Search

Flow chart

maayan
Path Finder

Hi,

I have a table of 3 columns: Event name, time(=when the event happened) and source (file name).

I need to create a flow chart (similar to the attached picture) when X-axis represents time and Y axis binary (event happen or not).
I need a line for each event name and a different color for each line.
I also need to filter by time range (like the chart in the picture, to have the option to look on different time intervals). Also, click on a specific point and get its raw data (to know from which file it was taken).

Can I do it in Splunk? How?

I tried to create a timeline, but it doesn't look so good : 

| eval myTime=TimeStamp/10000000 - 11644473600 | eval WinTimeStamp2=strftime(myTime, "%Y-%m-%dT%H:%M:%S.%Q")
| bin WinTimeStamp2 span=1d | stats count by WinTimeStamp2, Name

example for timestamp=133265876804261336

Thanks,

Maayan

Labels (1)
0 Karma

yuanliu
SplunkTrust
SplunkTrust

The command you are looking for is timechart, the option to examine data in user-selected time interval is available in dashboard (whether classic aka Simple XML or Dashboard Studio).

Based on sample code you have shown, I suspect that the timechart should look something like

| timechart span=1d count by Name

But you didn't explain the complex acrobat around TimeStamp, so it is hard to say how that is to be transformed into Splunk's native _time.

Your picture suggests that you had some exposure to Grafana.  If that is the case, and you want to pick up Splunk, the best course is try to forget the ways of Grafana, which isolates data from visualization and, as a consequence, has no true sense of time.  _time is an internal field that is central to Splunk data.  In most cases, correct time should be determined at ingestion time so the user (programmer) needn't have to worry about.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...