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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...