<?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: Collect command not writing correct results to summary index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-collect-command-not-writing-correct-results-to-summary/m-p/621468#M216019</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244605"&gt;@Splunk4&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried with a simpler collect command e.g. using only index option or a marker without quotes?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;marker="User De-provisioning"&lt;/LI-CODE&gt;&lt;P&gt;Obviously you already created the index befre executing the search.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Sun, 20 Nov 2022 06:43:04 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-11-20T06:43:04Z</dc:date>
    <item>
      <title>Why is collect command not writing correct results to summary index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-collect-command-not-writing-correct-results-to-summary/m-p/621444#M216004</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I am using the collect command to write data in summary index and it is giving the values properly when i run the search manually before using collect command but when i put the collect command the values become 0.&lt;/P&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Attached are the screenshots before collect and the job results of saved search&lt;/P&gt;
&lt;P&gt;If anyone has idea on this pls let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 03:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-collect-command-not-writing-correct-results-to-summary/m-p/621444#M216004</guid>
      <dc:creator>Splunk4</dc:creator>
      <dc:date>2022-11-21T03:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Collect command not writing correct results to summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-collect-command-not-writing-correct-results-to-summary/m-p/621445#M216005</link>
      <description>&lt;P&gt;Sorry i am unbale to post screenshot but here is the search :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=iam_myid_transac_idx sourcetype="myid_identity" employeeno=* ((employeesource=* employeesubgrp="Contractor") OR (employeesource=* employeesubgrp="Vendors") OR (employeesource=* employeesubgrp="Consultant") OR (employeesource=* employeesubgrp="Agency Temp") OR (employeesource="Temporary Identity" employeesubgrp!="Consultant")) status="Active" earliest=@d latest=now()&lt;BR /&gt;|fields employeeno,employeesource,employeesubgrp,employmentenddate&lt;BR /&gt;|dedup employeeno&lt;BR /&gt;|fillnull value=NULL employmentenddate&lt;BR /&gt;|stats count(eval(in(employmentenddate,"31/12/9999","NULL"))) as Contractors_with_no_enddate count(employeeno) as Total_Contractors&lt;BR /&gt;|eval Metric9=floor((Contractors_with_no_enddate/Total_Contractors)*100*100)/100&lt;BR /&gt;|eval _time=now()&lt;BR /&gt;|collect index="iam_reporting_summary_idx" source="myid" marker="Control=\"User De-provisioning\""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the results if i remove the collect and runa manually :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Contractors_with_no_enddate Total_Contractors Metric9 _time&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;8353&lt;/TD&gt;&lt;TD&gt;8535&lt;/TD&gt;&lt;TD&gt;97.86&lt;/TD&gt;&lt;TD&gt;2022-11-19 23:56:1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are results coming when i view the results in job inspector and check in index.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Contractors_with_no_enddate Total_Contractors _time&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2022-11-19 10:07:0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 19 Nov 2022 12:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-collect-command-not-writing-correct-results-to-summary/m-p/621445#M216005</guid>
      <dc:creator>Splunk4</dc:creator>
      <dc:date>2022-11-19T12:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Collect command not writing correct results to summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-collect-command-not-writing-correct-results-to-summary/m-p/621468#M216019</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244605"&gt;@Splunk4&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried with a simpler collect command e.g. using only index option or a marker without quotes?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;marker="User De-provisioning"&lt;/LI-CODE&gt;&lt;P&gt;Obviously you already created the index befre executing the search.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2022 06:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-collect-command-not-writing-correct-results-to-summary/m-p/621468#M216019</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-20T06:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Collect command not writing correct results to summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-collect-command-not-writing-correct-results-to-summary/m-p/621474#M216024</link>
      <description>&lt;P&gt;What is the search you are using to get the results from the summary index?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2022 08:01:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-collect-command-not-writing-correct-results-to-summary/m-p/621474#M216024</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-20T08:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Collect command not writing correct results to summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-collect-command-not-writing-correct-results-to-summary/m-p/621500#M216035</link>
      <description>&lt;P&gt;This search was working fine earlier and results were coming properly.What i have noticed that the other this search running from one of the search head and due to which it might not be working while the other searches run from another search head and they are working fine.I am not sure how to check on this thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 03:30:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-collect-command-not-writing-correct-results-to-summary/m-p/621500#M216035</guid>
      <dc:creator>Splunk4</dc:creator>
      <dc:date>2022-11-21T03:30:41Z</dc:date>
    </item>
  </channel>
</rss>

