Dashboards & Visualizations

Using Sparkline to show successful logins

cburr2012
Path Finder

Hello all,

I am wanting to build a panel in my Dashboard that allows me to see a small sample of the login trends of users.

I think a Sparkline would be a good method to use, based on its compact size and trend-viewing capability.

I've been tinkering around with Sparkline but can't quite get what I'm looking for. I liked the example Splunk Documentation gave of having the magnitudes of the Earthquakes, I feel like my solution should be easier than that. Alas, I am stuck.

My query asks: search this_index this_sourcetype logon_message etc.etc. | stats count by Account_Name | sort count

This shows me my account_names with the highest number of successful logins. Now I'd like to see that in a Sparkline over a short period of time.

Thoughts? Thanks!

Tags (1)
0 Karma
1 Solution

sdaniels
Splunk Employee
Splunk Employee

If you do '... | chart sparkline count by Account_Name' is it not giving you what you want?

You can use time modifiers like 'earliest' and 'latest' to specify a time period for your saved search.

http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/SearchTimeModifiers

View solution in original post

sdaniels
Splunk Employee
Splunk Employee

If you do '... | chart sparkline count by Account_Name' is it not giving you what you want?

You can use time modifiers like 'earliest' and 'latest' to specify a time period for your saved search.

http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/SearchTimeModifiers

cburr2012
Path Finder

http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/SearchTimeModifiers provided the proper documentation I needed. Thanks sdaniels.

0 Karma
Get Updates on the Splunk Community!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...