<?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 Logging output from clean-dispatch in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Logging-output-from-clean-dispatch/m-p/78535#M16079</link>
    <description>&lt;P&gt;I have a script that runs when certain events occur.  This script cleans the dispatch directory.  I would like to log the output of this command so that I can track when the script runs and what it did.&lt;/P&gt;

&lt;P&gt;I am not a linux guru and have tried:&lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk cmd splunkd clean-dispatch /temp -1d  -1d | tee -a /opt/splunk/var/log/splunk/internalscripts.log&lt;/P&gt;

&lt;P&gt;and &lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk cmd splunkd clean-dispatch /temp -1d  -1d &amp;gt;&amp;gt; tee -a /opt/splunk/var/log/splunk/internalscripts.log&lt;/P&gt;

&lt;P&gt;Neither writes to the logfile.  Is there another way of writing the output to the logfile?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jan 2013 16:11:14 GMT</pubDate>
    <dc:creator>rmorlen</dc:creator>
    <dc:date>2013-01-04T16:11:14Z</dc:date>
    <item>
      <title>Logging output from clean-dispatch</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logging-output-from-clean-dispatch/m-p/78535#M16079</link>
      <description>&lt;P&gt;I have a script that runs when certain events occur.  This script cleans the dispatch directory.  I would like to log the output of this command so that I can track when the script runs and what it did.&lt;/P&gt;

&lt;P&gt;I am not a linux guru and have tried:&lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk cmd splunkd clean-dispatch /temp -1d  -1d | tee -a /opt/splunk/var/log/splunk/internalscripts.log&lt;/P&gt;

&lt;P&gt;and &lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk cmd splunkd clean-dispatch /temp -1d  -1d &amp;gt;&amp;gt; tee -a /opt/splunk/var/log/splunk/internalscripts.log&lt;/P&gt;

&lt;P&gt;Neither writes to the logfile.  Is there another way of writing the output to the logfile?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 16:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logging-output-from-clean-dispatch/m-p/78535#M16079</guid>
      <dc:creator>rmorlen</dc:creator>
      <dc:date>2013-01-04T16:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Logging output from clean-dispatch</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logging-output-from-clean-dispatch/m-p/78536#M16080</link>
      <description>&lt;P&gt;The 2nd option above should read &lt;BR /&gt;
    /opt/splunk/bin/splunk cmd splunkd clean-dispatch /temp -1d -1d &amp;gt;&amp;gt; /opt/splunk/var/log/splunk/internalscripts.log&lt;/P&gt;

&lt;P&gt;Also, does /temp exist ?  Maybe this should be /tmp ?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 16:26:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logging-output-from-clean-dispatch/m-p/78536#M16080</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-01-04T16:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Logging output from clean-dispatch</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logging-output-from-clean-dispatch/m-p/78537#M16081</link>
      <description>&lt;P&gt;The command /opt/splunk/bin/splunk cmd splunkd clean-dispatch /temp -1d -1d works fine.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 16:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logging-output-from-clean-dispatch/m-p/78537#M16081</guid>
      <dc:creator>rmorlen</dc:creator>
      <dc:date>2013-01-04T16:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Logging output from clean-dispatch</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Logging-output-from-clean-dispatch/m-p/78538#M16082</link>
      <description>&lt;P&gt;Sorry for wasting time.  The command below works (not sure why it didn't show up in the log before):&lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk cmd splunkd clean-dispatch /temp -1d  -1d | tee -a /opt/splunk/var/log/splunk/internalscripts.log&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 16:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Logging-output-from-clean-dispatch/m-p/78538#M16082</guid>
      <dc:creator>rmorlen</dc:creator>
      <dc:date>2013-01-04T16:42:39Z</dc:date>
    </item>
  </channel>
</rss>

