<?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 to filter events with exporttool? in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/How-to-filter-events-with-exporttool/m-p/19081#M1002</link>
    <description>&lt;P&gt;If you paste your search directly into the splunk web interface, do you get the expected results?  If so, have you tried running "splunk search" from the cmd line instead of "exporttool"?  Do you get the same results as in the GUI?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2012 10:43:55 GMT</pubDate>
    <dc:creator>jt_splunk</dc:creator>
    <dc:date>2012-04-06T10:43:55Z</dc:date>
    <item>
      <title>How to filter events with exporttool?</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-filter-events-with-exporttool/m-p/19080#M1001</link>
      <description>&lt;P&gt;Hi I'm attempting to export a subset of events from an index,  but no matter what option I put in the &lt;CODE&gt;export_search&lt;/CODE&gt; portion of the command line I get nothing exported.  Below is a simple example of that I have tried that doesn't work.  I get the same results on 4.3.1 and 4.2.5.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; # $SPLUNK_HOME/splunk cmd exporttool \
    $SPLUNK_HOME/var/lib/splunk/_internaldb/db/db_1332952458_1332950725_3/ \
    /tmp/test.csv -csv 'search index=_internal source!="*/splunk-0/var/log/splunk/web_service.log"'
Using logging configuration at $SPLUNK_HOME/etc/log-cmdline.cfg.
no events
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Apr 2012 20:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-filter-events-with-exporttool/m-p/19080#M1001</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2012-04-04T20:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter events with exporttool?</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-filter-events-with-exporttool/m-p/19081#M1002</link>
      <description>&lt;P&gt;If you paste your search directly into the splunk web interface, do you get the expected results?  If so, have you tried running "splunk search" from the cmd line instead of "exporttool"?  Do you get the same results as in the GUI?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2012 10:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-filter-events-with-exporttool/m-p/19081#M1002</guid>
      <dc:creator>jt_splunk</dc:creator>
      <dc:date>2012-04-06T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter events with exporttool?</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-filter-events-with-exporttool/m-p/19082#M1003</link>
      <description>&lt;P&gt;When I remove 'search' from the beginning of the query, yes the GUI and command line both return the same results.  But searching with or without 'search' at the start I still get no results from exporttool.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2012 17:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-filter-events-with-exporttool/m-p/19082#M1003</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2012-04-06T17:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter events with exporttool?</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-filter-events-with-exporttool/m-p/570354#M1004</link>
      <description>&lt;P&gt;This is an old thread, but maybe someone gets some help from this....&lt;/P&gt;&lt;P&gt;It looks like you can't search in the _raw record of the data, however it is possible to filter on host or some of the other fields created at index time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you look in a non-filtered CSV you will see the syntax for host. The filter for export_search would then be 'host::&amp;lt;hostname&amp;gt;'&lt;/P&gt;&lt;P&gt;Note that exporttool is unsupported, so a better alternative may be ./splunk export which may filter on other terms.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 18:17:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-filter-events-with-exporttool/m-p/570354#M1004</guid>
      <dc:creator>hnorvik</dc:creator>
      <dc:date>2021-10-09T18:17:36Z</dc:date>
    </item>
  </channel>
</rss>

