<?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: Why am I unable to save my search as a query in a dashboard panel? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245860#M73300</link>
    <description>&lt;P&gt;Hi smudge797,&lt;/P&gt;

&lt;P&gt;you need to to escape the &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;gt;&lt;/CODE&gt; in the XML using &lt;CODE&gt;&amp;amp;lt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;amp;gt;&lt;/CODE&gt; or the &lt;CODE&gt;&amp;lt;![CDATA[&lt;/CODE&gt; tag, fine more details in the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/AdvancedDev/AdvancedIntro#Special_characters_in_XML_files"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.3/AdvancedDev/AdvancedIntro#Special_characters_in_XML_files&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2016 23:19:26 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2016-08-24T23:19:26Z</dc:date>
    <item>
      <title>Why am I unable to save my search as a query in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245859#M73299</link>
      <description>&lt;P&gt;I have search that works fine when run manually:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=WinHostMonTest | rex field=_raw "CommandLine=(?.+[^\n])" | table CmdLine
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when I try to add it into my dashboard, it complains and the closing  and will not save:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;search&amp;gt;
   &amp;lt;query&amp;gt;index=perfmon source=process sourcetype=WinHostMon ProcessId=22864 earliest=$time.earliest$ latest=$time.latest$ host=$Host$ ProcessId=$ProcessID$ | dedup ProcessId | rex field=_raw "CommandLine=(?.+[^\n])" | table CmdLine &amp;lt; / query &amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Aug 2016 22:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245859#M73299</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-08-24T22:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to save my search as a query in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245860#M73300</link>
      <description>&lt;P&gt;Hi smudge797,&lt;/P&gt;

&lt;P&gt;you need to to escape the &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;gt;&lt;/CODE&gt; in the XML using &lt;CODE&gt;&amp;amp;lt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;amp;gt;&lt;/CODE&gt; or the &lt;CODE&gt;&amp;lt;![CDATA[&lt;/CODE&gt; tag, fine more details in the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/AdvancedDev/AdvancedIntro#Special_characters_in_XML_files"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.3/AdvancedDev/AdvancedIntro#Special_characters_in_XML_files&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 23:19:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245860#M73300</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-08-24T23:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to save my search as a query in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245861#M73301</link>
      <description>&lt;P&gt;If you really coded it like this &lt;CODE&gt;&amp;lt; / query &amp;gt;&lt;/CODE&gt; i.e. with spaces, you need to remove the spaces to make it a valid XML closing tag: &lt;CODE&gt;&amp;lt;/query&amp;gt;&lt;/CODE&gt;. But maybe this is just a formatting issue.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 23:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245861#M73301</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2016-08-24T23:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to save my search as a query in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245862#M73302</link>
      <description>&lt;P&gt;Oh good spotting!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 23:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245862#M73302</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-08-24T23:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to save my search as a query in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245863#M73303</link>
      <description>&lt;P&gt;Nope that's just so it would post in here.  Went a bit freaky without the spaces.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 03:27:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245863#M73303</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-08-25T03:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to save my search as a query in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245864#M73304</link>
      <description>&lt;P&gt;Some things need to be encoded (e.g. angle-bracket characters).  The easiest way to do this to let splunk do the encoding.  First, save the xml with a dummy search that is so basic that Splunk will not be able to complain about it, such as this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|noop
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then, click &lt;CODE&gt;Edit Panels&lt;/CODE&gt; (instead of &lt;CODE&gt;Edit Source&lt;/CODE&gt;) and a &lt;CODE&gt;Magnifying Glass Icon&lt;/CODE&gt; will appear in the upper-right corner of every panel.  Click on this inside your panel and select "Edit Search String".  Paste your actual search string into that dialog and click &lt;CODE&gt;Save&lt;/CODE&gt;.  Done.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 15:00:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245864#M73304</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-08-25T15:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to save my search as a query in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245865#M73305</link>
      <description>&lt;P&gt;CDATA worked fine.  Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 15:02:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245865#M73305</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-08-25T15:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to save my search as a query in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245866#M73306</link>
      <description>&lt;P&gt;Cool work around.  Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 15:03:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245866#M73306</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-08-25T15:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to save my search as a query in a dashboard panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245867#M73307</link>
      <description>&lt;P&gt;Pick the best answer and click "Accept" to close the Question.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 15:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-save-my-search-as-a-query-in-a-dashboard/m-p/245867#M73307</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-08-25T15:55:13Z</dc:date>
    </item>
  </channel>
</rss>

