Hi,
I am using mcollect to collect data from certain metrics into another metric index. I have created the new metric index in the search head and also in the indexer clusters.
The command looks something like this, but whenever I run the command, I get an error 'No results to summary index'.
| mpreview index=metrics_old target_per_timeseries=5 filter="metric_name IN ( process.java.gc.collections) env IN (server_name:port)"
| mcollect index=metrics_new
Is there something I'm doing wrong when using the mcollect command?
Please advise. Thanks in advance.
Regards,
Pravin
Hi @LAME-Creations ,
I figured out the problem related to writing to the indexers. The issue was that the Search Head wasn't forwarding its data to the indexers and hence wasn't working in my case. As I created an outputs.conf on the SH, the error appeared, but the data was being written.
Thanks,
Pravin
Hi @_pravin
The error "No results to summary index" suggests that the first part of your query didnt return any events, or didnt return events which could be interpeted as a metric.
Can you run the first line to confirm you are getting events returned?
Can you also please confirm that you have permission to read/write to metrics_new and that (as the name suggests ) it is definitely a metric index?
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
Hi @livehybrid ,
To answer your questions in order,
Data is available, but not written to the new index.
info : The limit has been reached for log messages in info.csv. 65149 messages have not been written to info.csv. Refer to search.log for these messages or limits.conf to configure this limit.
warn : No results to summary index.
Once I complete the execution, I get the above error message in the job inspector.
Thanks,
Pravin
| mpreview index=metrics_old target_per_timeseries=5 filter="metric_name IN (process.java.gc.collections) env IN (server_name:port)"| fields metric_name, _value, env
| mcollect index=metrics_new
[search] max_messages_per_info_csv = 100000
| mpreview index=metrics_old target_per_timeseries=1 filter="metric_name=process.java.gc.collections"| mcollect index=metrics_new
Hi @LAME-Creations ,
I figured out the problem related to writing to the indexers. The issue was that the Search Head wasn't forwarding its data to the indexers and hence wasn't working in my case. As I created an outputs.conf on the SH, the error appeared, but the data was being written.
Thanks,
Pravin