All Apps and Add-ons

Create hyperlink using sideview utils

dabarb1
Explorer

So I'm having trouble using Sideview Utils to create a hyperlink to a new 'flashtimeline' from a graph that contains a column chart.

So what I'm trying to do is take both the 'Search' and 'PostProcess' queries that are used to create a column chart, and create a hyper-link to a new page that is a flashtimeline with the 'search' and 'postProcess' queries concatenated together.

So currently I have a 'Search' module with a 'search' param and a 'PostProcess' with a 'search' param nested within the outer module. Then within the 'PostProcess' module I have a nested 'ValueSetter' module as follows:


rec=test | stats count(rec) by rec, field1

timechart count(rec) by field1
<!-- ... HiddenChartFormatter and FlashChart go inside here -->

redirectURL
search,postProcess
$search$ | $postProcess$


<![CDATA[
View Results
]]>




So when I do this it loads a new 'flashtimeline' page, but does not use the appended search query...however the query is in the URL text box at the top of the browser. What am I doing wrong? Also is the 'Redirector' module used for this type of thing, and how do you use it? I can't seem to get the redirector module to do anything useful like create a link either.

0 Karma

sideview
SplunkTrust
SplunkTrust

It looks like you've used

<a href="flashtimeline?$redirectURL$">View results</a>

But that isn't a properly formed argument. Here's what you want instead

<a href="flashtimeline?q=search $redirectURL$">View results</a>

and actually you probably want to include the selected timerange as well, like so:

<a href="flashtimeline?q=search $redirectURL$&amp;earliest=$search.timeRange.earliest$&amp;latest=$search.timeRange.latest$">View results</a>

UPDATE:

If, on the other hand, you're linking to a view that is also using Sideview Utils and has a SearchBar module, I would use the searchBar argument instead of 'q', and use an explicit 'autoRun' argument.

<a href="flashtimeline?searchBar=$redirectURL$&amp;earliest=$search.timeRange.earliest$&amp;latest=$search.timeRange.latest$&amp;autoRun=True">View results</a>
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...