<?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: I am trying to run CLI searches and output it to a file but its only giving 100 results. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441945#M169003</link>
    <description>&lt;P&gt;The new query would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk search "index =main sourcetype=employee_data_hcprd earliest=-24h@h latest=now |search HR_STATUS="I" | table EMPLID"  -maxout 0 &amp;gt; /opt/jobdata.txt
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Jun 2018 15:03:26 GMT</pubDate>
    <dc:creator>jowenssi</dc:creator>
    <dc:date>2018-06-11T15:03:26Z</dc:date>
    <item>
      <title>I am trying to run CLI searches and output it to a file but its only giving 100 results.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441942#M169000</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;

&lt;P&gt;I am trying to run below query everyday at 6AM through CLI and output the result to new text file. But it's returning only 100 results. I also tried maxout but its not working and giving me some error, I might be missing something here . Can someone help me to get unlimited results for the query below.&lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk search 'index =main sourcetype=employee_data_hcprd  earliest=-24h@h latest=now  |search HR_STATUS="I" | table EMPLID' &amp;gt; /opt/jobdata.txt&lt;/P&gt;

&lt;P&gt;Thanks.&lt;BR /&gt;
Surya&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441942#M169000</guid>
      <dc:creator>jsuryaprakash</dc:creator>
      <dc:date>2020-09-29T19:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to run CLI searches and output it to a file but its only giving 100 results.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441943#M169001</link>
      <description>&lt;P&gt;You need the &lt;CODE&gt;-maxout&lt;/CODE&gt; switch. By default the CLI will only output 100 results but by using this switch you change that. Set it to 0 if you want to output unlimited results.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.0/Search/ExportdatausingCLI"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.0/Search/ExportdatausingCLI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 22:19:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441943#M169001</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2018-06-08T22:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to run CLI searches and output it to a file but its only giving 100 results.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441944#M169002</link>
      <description>&lt;P&gt;Hi Ayn,&lt;/P&gt;

&lt;P&gt;I tried it but its but still its returning the 100 results. Can you modify my above query where exactly to add -maxout switch .&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 14:47:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441944#M169002</guid>
      <dc:creator>jsuryaprakash</dc:creator>
      <dc:date>2018-06-11T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to run CLI searches and output it to a file but its only giving 100 results.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441945#M169003</link>
      <description>&lt;P&gt;The new query would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk search "index =main sourcetype=employee_data_hcprd earliest=-24h@h latest=now |search HR_STATUS="I" | table EMPLID"  -maxout 0 &amp;gt; /opt/jobdata.txt
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jun 2018 15:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441945#M169003</guid>
      <dc:creator>jowenssi</dc:creator>
      <dc:date>2018-06-11T15:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to run CLI searches and output it to a file but its only giving 100 results.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441946#M169004</link>
      <description>&lt;P&gt;Thanks , got it working.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 15:15:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441946#M169004</guid>
      <dc:creator>jsuryaprakash</dc:creator>
      <dc:date>2018-06-11T15:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to run CLI searches and output it to a file but its only giving 100 results.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441947#M169005</link>
      <description>&lt;P&gt;The new query would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk search "index =main sourcetype=employee_data_hcprd earliest=-24h@h latest=now |search HR_STATUS=\"I\" | table EMPLID"  -maxout 0 &amp;gt; /opt/jobdata.txt
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jun 2018 15:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-am-trying-to-run-CLI-searches-and-output-it-to-a-file-but-its/m-p/441947#M169005</guid>
      <dc:creator>jowenssi</dc:creator>
      <dc:date>2018-06-11T15:41:56Z</dc:date>
    </item>
  </channel>
</rss>

