Refine your search:

s it possible to combine HiddenSavedSearch and ExtendedFieldSearch to do a replacement on a saved search $value$?

I have something similar to this:

<module name="ExtendedFieldSearch"> 
<param name="intention"> 
<param name="name">stringreplace</param> 
<param name="arg"> 
<param name="service"> 
<param name="default">catch22</param> 
</param> 
</param> 
</param> 
<param name="replacementMap"> 
<param name="arg"> 
<param name="service"> 
<param name="value"></param> 
</param> 
</param> 
</param> 

<param name="field">Service Name</param> 

<module name="HiddenSavedSearch" layoutPanel="panel_row1_col1"> 
<param name="savedSearch">Tomcat - JVM Heap Full Overview</param> 
<module name="HiddenChartFormatter" layoutPanel="panel_row1_col1_grp1"> 
<param name="chartTitle">JVM Heap Full Overview</param> 
<param name="legend.placement">bottom</param> 
<param name="chart">line</param> 
<module name="FlashChart"> 
<param name="width">275px</param> 
<param name="height">325px</param> 
<module name="ViewRedirectorLink"> 
<param name="viewTarget">flashtimeline</param> 
<param name="label">View full results</param> 
</module> 
</module> 
</module> 
</module> 

and a saved search referencing $service$, but it doesn't seem to work.

asked 02 Mar '10, 23:34

Mick's gravatar image

Mick ♦
4.0k1327
accept rate: 52%


2 Answers:

You actually can.

The reason why its not working is that this is one of the few cases where there's an order dependency. Put the ExtendedFieldSearch downstream from the HiddenSavedSearch.
The HiddenSavedSearch actually obliterates everything about the search, including things like intentions and timeranges. Thus its actually erasing the change wrought by ExtendedFieldSearch.

As an aside, unless the $service$ token is NOT in the initial search clause of your saved search, you really dont want to do it this way. I recommend switching from the stringreplace intention to the slightly simpler addterm intention. replace the

<param name="intention">
...
</param>

node that you have there, with this

<param name="intention">
  <param name="name">addterm</param>
  <param name="arg">
    <param name="service"></param>
  </param>
  <param name="flags"><list>indexed</list></param>
</param>
link

answered 04 Mar '10, 01:21

nick's gravatar image

nick ♦
14.2k1318
accept rate: 46%

edited 11 May '10, 08:17

This doesn't seem to be what Mick is asking for. He is trying to use the HiddenSavedSearch module to reference a search with a stringreplace variable imbedded in it.

(17 Apr '10, 00:14) Nate ♦

Oh cheers. I edited the answer a bit.

(19 Apr '10, 19:31) nick ♦
-1

No, this is currently not possible. You must use a hidden search to facilitate this behavior.

link

answered 03 Mar '10, 18:01

Nate's gravatar image

Nate ♦
992
accept rate: 66%

No, if he reverses the order and puts the HiddenSavedSearch above the ExtendedFieldSearch, it will work. It's just a little bizarre and not recommended to have $foo$ tokens in the saved search itself.

(11 May '10, 08:18) nick ♦
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×37
×21

Asked: 02 Mar '10, 23:34

Seen: 939 times

Last updated: 11 May '10, 08:17

Copyright © 2005-2012 Splunk, Inc. All rights reserved.