<?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: Shell script execution after a search and outputcsv in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Shell-script-execution-after-a-search-and-outputcsv/m-p/356354#M93812</link>
    <description>&lt;P&gt;Works perfectly! Thanks a lot anjambha!&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2017 13:00:04 GMT</pubDate>
    <dc:creator>plongpre</dc:creator>
    <dc:date>2017-11-09T13:00:04Z</dc:date>
    <item>
      <title>Shell script execution after a search and outputcsv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shell-script-execution-after-a-search-and-outputcsv/m-p/356352#M93810</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I'm trying to run the following query:&lt;BR /&gt;
index=alerts Status="Open" AlertId="30822ac3b4a6138de30c5726e2e05931"|table _time, AlertId, host, user, AlertMsg, "Close", |head 1&lt;BR /&gt;
|outputcsv updatedalert | movealert&lt;/P&gt;

&lt;P&gt;movealert at the end of the query is a batch file hosted on my server.&lt;BR /&gt;
If I run the first part of the command, it creates the updatedalert.csv file as expected. &lt;BR /&gt;
If I run a search only with "| movealert" alone, the script executes and moves the files to my lookup directory.&lt;BR /&gt;
But when I try to run both command combined, none of them executes as if one was blocking the other.&lt;/P&gt;

&lt;P&gt;Any idea if (and how) I can this to work?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 23:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shell-script-execution-after-a-search-and-outputcsv/m-p/356352#M93810</guid>
      <dc:creator>plongpre</dc:creator>
      <dc:date>2017-11-08T23:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script execution after a search and outputcsv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shell-script-execution-after-a-search-and-outputcsv/m-p/356353#M93811</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;

&lt;P&gt;try below query..&lt;/P&gt;

&lt;P&gt;| movealert [search index=alerts Status="Open" AlertId="30822ac3b4a6138de30c5726e2e05931"|table _time, AlertId, host, user, AlertMsg, "Close", |head 1&lt;BR /&gt;
|outputcsv updatedalert | return NULL]&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 07:25:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shell-script-execution-after-a-search-and-outputcsv/m-p/356353#M93811</guid>
      <dc:creator>anjambha</dc:creator>
      <dc:date>2017-11-09T07:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script execution after a search and outputcsv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shell-script-execution-after-a-search-and-outputcsv/m-p/356354#M93812</link>
      <description>&lt;P&gt;Works perfectly! Thanks a lot anjambha!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 13:00:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shell-script-execution-after-a-search-and-outputcsv/m-p/356354#M93812</guid>
      <dc:creator>plongpre</dc:creator>
      <dc:date>2017-11-09T13:00:04Z</dc:date>
    </item>
  </channel>
</rss>

