<?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: running a Saved Search from the Command Line Interface (CLI) in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13259#M136</link>
    <description>&lt;P&gt;@bwooden Not working in Windows CLI. &lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 13:49:37 GMT</pubDate>
    <dc:creator>vishaltaneja070</dc:creator>
    <dc:date>2019-09-26T13:49:37Z</dc:date>
    <item>
      <title>running a Saved Search from the Command Line Interface (CLI)</title>
      <link>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13253#M130</link>
      <description>&lt;P&gt;How do I run a Saved Search from the CLI whose name has spaces in it? &lt;/P&gt;

&lt;P&gt;When I run a Saved Search whose name does NOT have spaces it works fine: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;./splunk search "| savedsearch wpsqa01_login_scconlo"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;When I try to run the following Saved Search WITH spaces, I receive an error: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;./splunk search "| savedsearch Application Login Attempts"&lt;/LI&gt;
&lt;LI&gt;Error in 'savedsearch' command: Unable to find saved search named 'Application'.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I have tried multiple combinations of single and double quotes, but so far I cannot get it to work. &lt;/P&gt;

&lt;P&gt;Any suggestions on how to get my Saved Search that has spaces in its name to work from the CLI? &lt;/P&gt;

&lt;P&gt;Thanks, 
     Sean &lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2010 22:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13253#M130</guid>
      <dc:creator>seanlon11</dc:creator>
      <dc:date>2010-05-11T22:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: running a Saved Search from the Command Line Interface (CLI)</title>
      <link>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13254#M131</link>
      <description>&lt;P&gt;A double quoted search name within a single quoted search command worked for me...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk search '|savedsearch "Splunk errors last 24 hours"'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 May 2010 09:06:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13254#M131</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2010-05-12T09:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: running a Saved Search from the Command Line Interface (CLI)</title>
      <link>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13255#M132</link>
      <description>&lt;P&gt;Worked like a charm.  Thought I had tried that combination, but apparently I was mistaken. &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2010 21:07:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13255#M132</guid>
      <dc:creator>seanlon11</dc:creator>
      <dc:date>2010-05-12T21:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: running a Saved Search from the Command Line Interface (CLI)</title>
      <link>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13256#M133</link>
      <description>&lt;P&gt;If your saved search is in your own custom app you can run it as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk search '| savedsearch "My saved search"' -app myAppName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jun 2010 17:54:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13256#M133</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2010-06-03T17:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: running a Saved Search from the Command Line Interface (CLI)</title>
      <link>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13257#M134</link>
      <description>&lt;P&gt;I am trying to run a saved search from the command-line in Windows.  When I run the search with a "|" character before "savedsearch", Windows says that it doesn't recognize 'savedsearch' as an internal or external command.&lt;/P&gt;

&lt;P&gt;How can I run a saved search from the command-line in Windows?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2011 07:03:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13257#M134</guid>
      <dc:creator>jambajuice</dc:creator>
      <dc:date>2011-02-19T07:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: running a Saved Search from the Command Line Interface (CLI)</title>
      <link>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13258#M135</link>
      <description>&lt;P&gt;You should open up a new topic on quoting CLI commands in Windows. But basically, because the Windows CMD shell has strange rules. You should quote the search string with double quotes &lt;CODE&gt;"&lt;/CODE&gt;, but if you have to use double quotes within the search string to quote the name of a saved search, you probably need to quote those in turn by using double double-quotes &lt;CODE&gt;""&lt;/CODE&gt; in place of the single ones.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2011 07:15:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13258#M135</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-19T07:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: running a Saved Search from the Command Line Interface (CLI)</title>
      <link>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13259#M136</link>
      <description>&lt;P&gt;@bwooden Not working in Windows CLI. &lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 13:49:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/running-a-Saved-Search-from-the-Command-Line-Interface-CLI/m-p/13259#M136</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-09-26T13:49:37Z</dc:date>
    </item>
  </channel>
</rss>

