<?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: Add / Remove desired indexes in / from the search in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Add-Remove-desired-indexes-in-from-the-search/m-p/292171#M55671</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;a) to remove the index append in the end of first line: NOT idx=firewall&lt;BR /&gt;
b) After idx="f*" append, OR idx="test.f.something"&lt;BR /&gt;
c) To replace, try the replace command: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Replace"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Replace&lt;/A&gt;, you can also use rex mode=sed and replace the commas&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2017 11:57:17 GMT</pubDate>
    <dc:creator>gfreitas</dc:creator>
    <dc:date>2017-03-23T11:57:17Z</dc:date>
    <item>
      <title>Add / Remove desired indexes in / from the search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-Remove-desired-indexes-in-from-the-search/m-p/292170#M55670</link>
      <description>&lt;P&gt;I'm using this search =&amp;gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source="*license_usage.log" type=usage idx="f*"
 | eval MB = round(b/1048576,2)
 | eval idx = idx
 | timechart span=1d sum(MB) by idx limit=0
 | rename _time as Datum
 | convert timeformat=%d.%m.%Y. ctime(Datum)
 | addtotals
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to find the usage of all indexes which names start with the letter f, (I have about 30 indexes started with f of approximately 750 indexes in total).&lt;/P&gt;

&lt;P&gt;a) &lt;STRONG&gt;How can I remove index &lt;EM&gt;firewall&lt;/EM&gt; from the results?&lt;/STRONG&gt; I know it starts with f but I don't want it in the results of the search.&lt;BR /&gt;
b) &lt;STRONG&gt;How can I add index &lt;EM&gt;test.f.something&lt;/EM&gt; in the results?&lt;/STRONG&gt; I know it doesn't start with f but I want it in the results of the search.&lt;BR /&gt;
c) This is not mandatory but &lt;STRONG&gt;can I replace dots with commas in the results?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 08:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-Remove-desired-indexes-in-from-the-search/m-p/292170#M55670</guid>
      <dc:creator>mrzmsmglsnk</dc:creator>
      <dc:date>2017-03-23T08:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add / Remove desired indexes in / from the search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-Remove-desired-indexes-in-from-the-search/m-p/292171#M55671</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;a) to remove the index append in the end of first line: NOT idx=firewall&lt;BR /&gt;
b) After idx="f*" append, OR idx="test.f.something"&lt;BR /&gt;
c) To replace, try the replace command: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Replace"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Replace&lt;/A&gt;, you can also use rex mode=sed and replace the commas&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 11:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-Remove-desired-indexes-in-from-the-search/m-p/292171#M55671</guid>
      <dc:creator>gfreitas</dc:creator>
      <dc:date>2017-03-23T11:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add / Remove desired indexes in / from the search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-Remove-desired-indexes-in-from-the-search/m-p/292172#M55672</link>
      <description>&lt;P&gt;a) I was writing, in the end of the first line, &lt;EM&gt;NOT index=firewall&lt;/EM&gt; not &lt;EM&gt;NOT idx=firewall&lt;/EM&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
Uf, I'm obviously tired. I must sleep.&lt;BR /&gt;
b) The same as a).&lt;BR /&gt;
c) I'll check the URL.&lt;/P&gt;

&lt;P&gt;gfreitas, &lt;STRONG&gt;THANK YOU&lt;/STRONG&gt;!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 12:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-Remove-desired-indexes-in-from-the-search/m-p/292172#M55672</guid>
      <dc:creator>mrzmsmglsnk</dc:creator>
      <dc:date>2017-03-23T12:30:13Z</dc:date>
    </item>
  </channel>
</rss>

