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.
Attached are the screenshots before collect and the job results of saved search
If anyone has idea on this pls let me know.
Sorry i am unbale to post screenshot but here is the search :
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()
|fillnull value=NULL employmentenddate
|stats count(eval(in(employmentenddate,"31/12/9999","NULL"))) as Contractors_with_no_enddate count(employeeno) as Total_Contractors
|collect index="iam_reporting_summary_idx" source="myid" marker="Control=\"User De-provisioning\""
Below are the results if i remove the collect and runa manually :
Contractors_with_no_enddate Total_Contractors Metric9 _time
Below are results coming when i view the results in job inspector and check in index.
Contractors_with_no_enddate Total_Contractors _time
What is the search you are using to get the results from the summary index?
did you tried with a simpler collect command e.g. using only index option or a marker without quotes?
Obviously you already created the index befre executing the search.
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.