<?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: Hidden Search using Advance XML in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Hidden-Search-using-Advance-XML/m-p/177274#M50958</link>
    <description>&lt;P&gt;i think i found the answer it has to be lt and gt to escape.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2014 06:24:11 GMT</pubDate>
    <dc:creator>nikhilmehra79</dc:creator>
    <dc:date>2014-03-07T06:24:11Z</dc:date>
    <item>
      <title>Hidden Search using Advance XML</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hidden-Search-using-Advance-XML/m-p/177273#M50957</link>
      <description>&lt;P&gt;so i have hidden search in my advance XML file in v5. works perfect until i need to modify my search to extend some regex - now the whole search string on search panel works fine but when i try to take the samelogic to advance xml in my app it starts throwing syntax error on xmlfile.&lt;/P&gt;

&lt;P&gt;Reason i think is that &lt;OBJECT&gt;&lt;PARAM /&gt; ..... is not liking a tag in search &lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;SO here is line which is throwing syntax error:&lt;/P&gt;

&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="search" /&gt;((source="ABC.csv") AND (SH)) | rex field=_raw "(?&lt;HOSTNAME&gt;.&lt;EM&gt;),(?&lt;VALUE&gt;.&lt;/VALUE&gt;&lt;/EM&gt;)" | avg(Value)&lt;/HOSTNAME&gt;&lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;i think it is not liking a tag &lt;HOSTNAME&gt; and &lt;VALUE&gt; in &lt;OBJECT&gt;&lt;PARAM /&gt;....what should i be doing differently?&lt;/OBJECT&gt;&lt;/VALUE&gt;&lt;/HOSTNAME&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 06:13:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hidden-Search-using-Advance-XML/m-p/177273#M50957</guid>
      <dc:creator>nikhilmehra79</dc:creator>
      <dc:date>2014-03-07T06:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hidden Search using Advance XML</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hidden-Search-using-Advance-XML/m-p/177274#M50958</link>
      <description>&lt;P&gt;i think i found the answer it has to be lt and gt to escape.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 06:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hidden-Search-using-Advance-XML/m-p/177274#M50958</guid>
      <dc:creator>nikhilmehra79</dc:creator>
      <dc:date>2014-03-07T06:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hidden Search using Advance XML</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hidden-Search-using-Advance-XML/m-p/177275#M50959</link>
      <description>&lt;P&gt;you have to use the &lt;CODE&gt;&amp;amp;lt;&lt;/CODE&gt; for &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; and the &lt;CODE&gt;&amp;amp;gt;&lt;/CODE&gt; for &lt;CODE&gt;&amp;gt;&lt;/CODE&gt; in your XML code. Another method would be to use your search inside a &lt;CODE&gt;CDATA&lt;/CODE&gt; tag. For more information read the docs on Simplified XML &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Viz/OverviewofSimplifiedXML"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Viz/OverviewofSimplifiedXML&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 08:45:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hidden-Search-using-Advance-XML/m-p/177275#M50959</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-03-07T08:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hidden Search using Advance XML</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Hidden-Search-using-Advance-XML/m-p/177276#M50960</link>
      <description>&lt;P&gt;I like to be able to copy-paste my searches in/out of my dashboards, so I always wrap my searches in CDATA tags.  So yours would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="search"&amp;gt;&amp;lt;![CDATA[((source="ABC.csv") AND (SH)) | rex field=_raw "(?&amp;lt;hostname&amp;gt;.*),(?&amp;lt;value&amp;gt;.*)" | avg(Value)]]&amp;gt;&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This way, you can copy your search into the Search view and run it without having to manually change &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;gt;&lt;/CODE&gt; back to &amp;lt; and &amp;gt;, respectively, and vice versa.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 16:48:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Hidden-Search-using-Advance-XML/m-p/177276#M50960</guid>
      <dc:creator>redc</dc:creator>
      <dc:date>2014-03-31T16:48:51Z</dc:date>
    </item>
  </channel>
</rss>

