<?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: How do I script Splunk commands in shell script to execute? in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-script-Splunk-commands-in-shell-script-to-execute/m-p/639693#M9545</link>
    <description>&lt;P&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk stop&lt;BR /&gt;/datadrive/opt/splunk/bin/splunk clean eventdata -index audit --answer-yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk clean eventdata -index _internal --answer-yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk clean eventdata -index _introspection --answer-yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk clean eventdata -index _metrics --answer-yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk clean eventdata -index _telemetry --answer-yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk start&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 21:39:46 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2023-04-12T21:39:46Z</dc:date>
    <item>
      <title>How do I script Splunk commands in shell script to execute?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-script-Splunk-commands-in-shell-script-to-execute/m-p/639643#M9542</link>
      <description>&lt;P&gt;I am writing a shell script which I will execute with a cron job to clean eventdata from files daily.&amp;nbsp; How do I script Splunk commands in shell script to execute?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what I have:&lt;/P&gt;
&lt;P&gt;cd /datadrive/opt/splunk/bin&lt;BR /&gt;./splunk clean eventdata -index audit&lt;BR /&gt;y&lt;BR /&gt;./splunk clean eventdata -index _internal&lt;BR /&gt;y&lt;BR /&gt;./splunk clean eventdata -index _introspection&lt;BR /&gt;y&lt;BR /&gt;./splunk clean eventdata -index _metrics&lt;BR /&gt;y&lt;BR /&gt;./splunk clean eventdata -index _telemetry&lt;BR /&gt;y&lt;BR /&gt;./splunk start&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any and all help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 16:58:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-script-Splunk-commands-in-shell-script-to-execute/m-p/639643#M9542</guid>
      <dc:creator>wkrupinsky</dc:creator>
      <dc:date>2023-04-12T16:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script Splunk commands in shell script to execute?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-script-Splunk-commands-in-shell-script-to-execute/m-p/639670#M9543</link>
      <description>&lt;P&gt;Have a look at this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Delete-clean-all-the-contents-of-splunk/m-p/183435" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Delete-clean-all-the-contents-of-splunk/m-p/183435&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 17:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-script-Splunk-commands-in-shell-script-to-execute/m-p/639670#M9543</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2023-04-12T17:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script Splunk commands in shell script to execute?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-script-Splunk-commands-in-shell-script-to-execute/m-p/639674#M9544</link>
      <description>&lt;P&gt;Thank you so much, I will try that&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 17:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-script-Splunk-commands-in-shell-script-to-execute/m-p/639674#M9544</guid>
      <dc:creator>wkrupinsky</dc:creator>
      <dc:date>2023-04-12T17:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script Splunk commands in shell script to execute?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-script-Splunk-commands-in-shell-script-to-execute/m-p/639693#M9545</link>
      <description>&lt;P&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk stop&lt;BR /&gt;/datadrive/opt/splunk/bin/splunk clean eventdata -index audit --answer-yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk clean eventdata -index _internal --answer-yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk clean eventdata -index _introspection --answer-yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk clean eventdata -index _metrics --answer-yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk clean eventdata -index _telemetry --answer-yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/datadrive/opt/splunk/bin/splunk start&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 21:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-script-Splunk-commands-in-shell-script-to-execute/m-p/639693#M9545</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-12T21:39:46Z</dc:date>
    </item>
  </channel>
</rss>

