Splunk Search

How do I rehydrate a sparkline from a lookup?

MonkeyK
Builder

Sometimes I run a really complex query and accumulate results in a lookup table.  I recently tried doing this and including a sparkline, which gave me a field that looked like

trend
##__SPARKLINE__##,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

 

If I just run "|inputlookup" to visualize that data, I just get the raw data back.  Is there a command that turns the stored sparkline data back into a sparkline?

Labels (1)
Tags (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Try this

| eval trend=split(trend,",")

View solution in original post

MonkeyK
Builder

works great!  thanks!

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try this

| eval trend=split(trend,",")
Get Updates on the Splunk Community!

Detecting Brute Force Account Takeover Fraud with Splunk

This article is the second in a three-part series exploring advanced fraud detection techniques using Splunk. ...

Buttercup Games: Further Dashboarding Techniques (Part 9)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Buttercup Games: Further Dashboarding Techniques (Part 8)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...