<?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: clean eventdata with wildcard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/clean-eventdata-with-wildcard/m-p/119596#M32099</link>
    <description>&lt;P&gt;Doesn't seem like it accepts wildcard (splunk clean eventdata -index &lt;INDEX_NAME&gt;). One workaround could be to get the list of indexes in excel, generate clean eventdata command for all and then put all those command in shell/batch script.&lt;/INDEX_NAME&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2014 13:25:28 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-06-25T13:25:28Z</dc:date>
    <item>
      <title>clean eventdata with wildcard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/clean-eventdata-with-wildcard/m-p/119595#M32098</link>
      <description>&lt;P&gt;I have about 100 indexes that all start with the same prefix EnLog_ and I want to clean the data in all of them. Is there a way at the command line to use a wildcard to clear them all at once (ex. clean eventdata EnLog_*)?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 13:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/clean-eventdata-with-wildcard/m-p/119595#M32098</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2014-06-25T13:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: clean eventdata with wildcard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/clean-eventdata-with-wildcard/m-p/119596#M32099</link>
      <description>&lt;P&gt;Doesn't seem like it accepts wildcard (splunk clean eventdata -index &lt;INDEX_NAME&gt;). One workaround could be to get the list of indexes in excel, generate clean eventdata command for all and then put all those command in shell/batch script.&lt;/INDEX_NAME&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 13:25:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/clean-eventdata-with-wildcard/m-p/119596#M32099</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-25T13:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: clean eventdata with wildcard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/clean-eventdata-with-wildcard/m-p/119597#M32100</link>
      <description>&lt;P&gt;Guess that will work. Was hoping there was a more simple way&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 17:28:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/clean-eventdata-with-wildcard/m-p/119597#M32100</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2014-06-25T17:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: clean eventdata with wildcard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/clean-eventdata-with-wildcard/m-p/119598#M32101</link>
      <description>&lt;P&gt;You could do this in bash:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;for index in `find  /opt/splunk/var/lib/splunk -type d  -name "EngLog_*"`
do
  /opt/splunk/bin/splunk clean eventdata -index $index -f
done
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just be careful and try the find command outside of the script first! &lt;/P&gt;

&lt;P&gt;There are a few directories that are not actual indexes, within that base directory. While they don't start with &lt;CODE&gt;EngLog_*&lt;/CODE&gt;, I figure that other people may look at this answer as a pattern...&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 01:01:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/clean-eventdata-with-wildcard/m-p/119598#M32101</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-06-26T01:01:46Z</dc:date>
    </item>
  </channel>
</rss>

