I have heard that the HTML module would render token values. I can find nothing on how to do it. I tried this:
<h1>I KNOW WHO YOU ARE $Area$</h1>
</html>
What I get is this:
Hi, yes you can use tokens in HTML views, quite easily.
For example, a view that would contain
<h1>My custom token is $foo$</h2>
Called with an uri like:
my_simple_xml_view?foo=bar
Will replace the token by the substitute value.
NB: In 6.1.x version, a bug has affected token substitution in href html, token were not substituted by expected values
This has been corrected in 6.2 (a workaround was to convert the view in html)
Okay, that explains it. We have 6.12
Hi, yes you can use tokens in HTML views, quite easily.
For example, a view that would contain
<h1>My custom token is $foo$</h2>
Called with an uri like:
my_simple_xml_view?foo=bar
Will replace the token by the substitute value.
NB: In 6.1.x version, a bug has affected token substitution in href html, token were not substituted by expected values
This has been corrected in 6.2 (a workaround was to convert the view in html)
For 6.1.x token html issue reference:
http://answers.splunk.com/answers/112509/simple-xml-token-not-substituted-within-href-attribute.html
Sideview Utils! Has ton of examples to achieve what you're looking for
Is it 6.x compatible? The app page says 5.0
App might not, but the examples will give you an idea on how to reference.
Do you have the token defined?
Yes, its is defined in the code I posted
In the code you posted is no definition of the token.
<h1>I KNOW WHO YOU ARE $Area$</h1> </html>
It just asks for the token $Area$ and substitude by whatever is in this token. But you must have defined it before. For example by a text input, a dropdown list or a drilldown.
Can you use the token in an other situation? For example in the title of a panel or in a drilldown search.
How weird, my glob of code has disappeared! Yes, I have it defined in a previous piece of code.