Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Switch to latest_run_time
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhemmarchand committed Aug 19, 2020
1 parent 9d8acbf commit 758fa73
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trackme/default/macros.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ definition = search index=_internal sourcetype=scheduler earliest=-4h latest=now
| stats avg(run_time) AS avg_run_time, max(run_time) AS max_run_time, latest(run_time) AS latest_run_time, latest(result_count) as last_processed_no_entities by savedsearch_name\
| foreach avg_run_time max_run_time latest_run_time [ eval <<FIELD>> = round('<<FIELD>>', 2) ]\
| appendcols [ | inputlookup trackme_data_source_monitoring where data_monitored_state="enabled" | where data_last_time_seen>relative_time(now(), "-24h") | stats count as total_entities ]\
| eval potential_rate_sec=round(avg_run_time/last_processed_no_entities, 2)\
| eval potential_rate_sec=round(latest_run_time/last_processed_no_entities, 2)\
| eval max_accepted_run_time_sec=`trackme_data_sampling_max_allowed_runtime_sec`\
| eval max_entities_to_process=round(max_accepted_run_time_sec/potential_rate_sec, 0)\
| table max_entities_to_process\
Expand Down
Binary file modified trackme_1221.tgz
Binary file not shown.

0 comments on commit 758fa73

Please sign in to comment.