Splunk Search

How do I add time stamp or label onto my timechart to mark a specific time/event?

sharonmok
Path Finder

Hi! I've got a very simple timechart query that pulls up number of user sessions per day. What I want to do is to add a label or a line that marks when a major event occurred so I can see how the user sessions have changed after it. How do I go about adding these labels?

Query being used:
| timechart span=1day@day dc(session_id) values(session_id)

niketn
Legend

@sharonmok, if you are on Splunk 7+ you can take advantage of Event Annotations

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

sharonmok
Path Finder

Unfortunately, I'm on 6.6.4

0 Karma

DalJeanis
Legend

One simple way to do this is just to add another field to cause a "blip" at the date/time that you want. This could be done either by ...

| timechart span=1day@day dc(session_id) values(session_id)
| eval blip=case(_time=the time of the event, 1000)

... or by ...

| append [|makeresults | eval _time=the time of the event, blip=1000 | table _time blip]
| timechart span=1day@day dc(session_id) values(session_id) max(blip) 

sharonmok
Path Finder

Thanks for your reply. I tried both of these and unfortunately, a blip doesn't get created. It's just the same chart.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...