<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: splunk 6 simplexml searchtemplate not working? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-6-simplexml-searchtemplate-not-working/m-p/148942#M9032</link>
    <description>&lt;P&gt;Hi kundeng,&lt;/P&gt;

&lt;P&gt;you should use a transforming command within your &lt;CODE&gt;searchTemplate&lt;/CODE&gt; for best results; read the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/AdvancedDev/PostProcess"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/AdvancedDev/PostProcess&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Tue, 16 Dec 2014 10:13:14 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2014-12-16T10:13:14Z</dc:date>
    <item>
      <title>splunk 6 simplexml searchtemplate not working?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-6-simplexml-searchtemplate-not-working/m-p/148941#M9031</link>
      <description>&lt;P&gt;Has anybody used the searchTemplate with searchPostProcess with single element?  I simply can't get it to work.  It always shows 0.  &lt;/P&gt;

&lt;P&gt;If I run the concatenated search, it works fine.  What's wrong?  Here is the snippet of the code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;searchTemplate&amp;gt;
     &amp;lt;![CDATA[
     sourcetype=sitescope Capsuletech:  host="UHSISMONCPRA*" | regex
source="SiteScope\d{4}_\d{2}_\d{2}(?&amp;lt;!v2)\.log"
 | head 2000 ]]&amp;gt;   &amp;lt;/searchTemplate&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inside the "dashboard" element. &lt;/P&gt;

&lt;P&gt;Then in a single element, I have &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;searchPostProcess&amp;gt;search NOT UHCASSPR* | dedup MonitorName sortby -_time | stats count as total&amp;lt;/searchPostProcess&amp;gt;
&amp;lt;field&amp;gt;total &amp;lt;/field&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Jul 2014 15:48:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-6-simplexml-searchtemplate-not-working/m-p/148941#M9031</guid>
      <dc:creator>kundeng</dc:creator>
      <dc:date>2014-07-18T15:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: splunk 6 simplexml searchtemplate not working?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-6-simplexml-searchtemplate-not-working/m-p/148942#M9032</link>
      <description>&lt;P&gt;Hi kundeng,&lt;/P&gt;

&lt;P&gt;you should use a transforming command within your &lt;CODE&gt;searchTemplate&lt;/CODE&gt; for best results; read the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/AdvancedDev/PostProcess"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/AdvancedDev/PostProcess&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2014 10:13:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/splunk-6-simplexml-searchtemplate-not-working/m-p/148942#M9032</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-12-16T10:13:14Z</dc:date>
    </item>
  </channel>
</rss>

