<?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 Why are only some events collected in an index when a report runs with the collect command? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Why-are-only-some-events-collected-in-an-index-when-a-report/m-p/166999#M3663</link>
    <description>&lt;P&gt;I am new to splunk so please forgive me if my terminology is off. I have a report that runs every minute. In the search of that report, I end it with the following command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|collect index=cactus_summary
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should collect the results from that search and create as an event. Then I should be able to access events from that search. However, when I search for &lt;CODE&gt;index=cactus_summary&lt;/CODE&gt; I only see only some of those events. For example, if I schedule the report to run every minute and I wait 15 minutes, I should be able to see 15 events when I search for &lt;CODE&gt;index=cactus_summary&lt;/CODE&gt;. However, I see 5-7 events all occurring at different increments of minutes (e.g.   event 1 occurs at 3:30, event 2 occurs at 3.33, event 3 occurs at 3:43). &lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2015 21:28:54 GMT</pubDate>
    <dc:creator>syx093</dc:creator>
    <dc:date>2015-06-18T21:28:54Z</dc:date>
    <item>
      <title>Why are only some events collected in an index when a report runs with the collect command?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-are-only-some-events-collected-in-an-index-when-a-report/m-p/166999#M3663</link>
      <description>&lt;P&gt;I am new to splunk so please forgive me if my terminology is off. I have a report that runs every minute. In the search of that report, I end it with the following command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|collect index=cactus_summary
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should collect the results from that search and create as an event. Then I should be able to access events from that search. However, when I search for &lt;CODE&gt;index=cactus_summary&lt;/CODE&gt; I only see only some of those events. For example, if I schedule the report to run every minute and I wait 15 minutes, I should be able to see 15 events when I search for &lt;CODE&gt;index=cactus_summary&lt;/CODE&gt;. However, I see 5-7 events all occurring at different increments of minutes (e.g.   event 1 occurs at 3:30, event 2 occurs at 3.33, event 3 occurs at 3:43). &lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 21:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-are-only-some-events-collected-in-an-index-when-a-report/m-p/166999#M3663</guid>
      <dc:creator>syx093</dc:creator>
      <dc:date>2015-06-18T21:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why are only some events collected in an index when a report runs with the collect command?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-are-only-some-events-collected-in-an-index-when-a-report/m-p/167000#M3664</link>
      <description>&lt;P&gt;Hello! Can i see  all your search query?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 22:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-are-only-some-events-collected-in-an-index-when-a-report/m-p/167000#M3664</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-18T22:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why are only some events collected in an index when a report runs with the collect command?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-are-only-some-events-collected-in-an-index-when-a-report/m-p/167001#M3665</link>
      <description>&lt;P&gt;Hello! I don't know how is your search query, but notice that, &lt;CODE&gt;schedule the report to run every minute&lt;/CODE&gt;does not means, you will get 1 event per minute.  Just because, &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Based on the search criteria, you could  have situations where none events are collected into your new index. For example a search like this: &lt;CODE&gt;index=_internal "error"|collect index=error_index&lt;/CODE&gt; , will send events into error_index, only when the word "error" is found in the _internal index.&lt;/LI&gt;
&lt;LI&gt;The search takes some time to run before provide events, depending of the complexity of your query, and your computer performances. Means, a search can take more than 1 minute to run, before provide the first event.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 23:10:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-are-only-some-events-collected-in-an-index-when-a-report/m-p/167001#M3665</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-18T23:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why are only some events collected in an index when a report runs with the collect command?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-are-only-some-events-collected-in-an-index-when-a-report/m-p/167002#M3666</link>
      <description>&lt;P&gt;I looked at my query and I don't think it's excluding events based on events not matching certain criteria. So it must be the performance of the computer. I ran the query and it takes at least 10 seconds to run and I don't think a 10 second search will cause some events not to show. Thanks anyways. I think I will create a dashboard with just the original search and not try to be fancy.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2015 14:07:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-are-only-some-events-collected-in-an-index-when-a-report/m-p/167002#M3666</guid>
      <dc:creator>syx093</dc:creator>
      <dc:date>2015-06-19T14:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why are only some events collected in an index when a report runs with the collect command?</title>
      <link>https://community.splunk.com/t5/Reporting/Why-are-only-some-events-collected-in-an-index-when-a-report/m-p/167003#M3667</link>
      <description>&lt;P&gt;host=schroeder index=os sourcetype=ps COMMAND=udpub |dedup PID|stats count AS udpub_cnt by host&lt;/P&gt;

&lt;P&gt;|appendcols [ search host=schroeder earliest=-2m index=os sourcetype=ps COMMAND=aimglog  |dedup PID|stats count AS aimglog_cnt by host]&lt;BR /&gt;
|appendcols [ search host=schroeder earliest=-2m index=os sourcetype=ps COMMAND=bimglog|dedup PID|stats count AS bimglog_cnt by host]&lt;BR /&gt;
|appendcols [ search host=schroeder earliest=-2m index=os sourcetype=ps COMMAND=smm |dedup PID|stats count AS smm_cnt by host] &lt;BR /&gt;
|appendcols [ search host=schroeder earliest=-2m index=os sourcetype=ps COMMAND=sm |dedup PID|stats count AS sm_cnt by host] &lt;BR /&gt;
|appendcols [ search host=schroeder earliest=-2m index=os sourcetype=ps COMMAND=sbcs |dedup PID|stats count AS sbcs_cnt by host] &lt;BR /&gt;
|appendcols [ search host=schroeder earliest=-2m index=os sourcetype=ps COMMAND=syncd "&lt;EM&gt;_&lt;/EM&gt;"|dedup PID|stats count AS syncd_cnt by host] &lt;BR /&gt;
|appendcols [ search host=schroeder earliest=-2m index=os sourcetype=ps COMMAND=cleanupd |dedup PID|stats count AS cleanupd_cnt by host]&lt;BR /&gt;&lt;BR /&gt;
| eval udpub_status=case(udpub_cnt==8,"OK",udpub_cnt!=8,"NOT OK") &lt;BR /&gt;
| eval smm_status=case(smm_cnt==1,"OK",smm_cnt!=1,"NOT OK") &lt;BR /&gt;
|eval sm_status=case(sm_cnt==1,"OK",sm_cnt!=1,"NOT OK")&lt;BR /&gt;&lt;BR /&gt;
| eval sbcs_status=case(sbcs_cnt==1,"OK",sbcs_cnt!=1,"NOT OK") &lt;BR /&gt;
|eval syncd_status=case(syncd_cnt==2,"OK",syncd_cnt!=2,"NOT OK") &lt;BR /&gt;
| eval cleanupd_status=case(cleanupd_cnt==1,"OK",cleanupd_cnt!=1,"NOT OK") &lt;BR /&gt;
| eval aimglog_status=case(aimglog_cnt==4,"OK",aimglog_cnt!=4,"NOT OK") &lt;BR /&gt;
| eval bimglog_status=case(bimglog_cnt==4,"OK",bimglog_cnt!=4,"NOT OK")&lt;BR /&gt;
|fields host *status *cnt |collect index=cactus_summary&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Why-are-only-some-events-collected-in-an-index-when-a-report/m-p/167003#M3667</guid>
      <dc:creator>syx093</dc:creator>
      <dc:date>2020-09-28T20:19:31Z</dc:date>
    </item>
  </channel>
</rss>

