With the Scripted Collector, how can I tell if it is a Preview, Discovery, Full Run, or Scheduled?
When Cribl calls the script for a Scripted Collector, how can I tell if it's a Preview, Discovery, Full Run, or Scheduled invocation?
Answers
-
Monitoring -> System -> Job Inspector
0 -
Ad-hoc tab for Preview and Full Run
0 -
Scheduled tab for scheduled jobs
0 -
Sorry- I wasn't specific enough. I need to know how the script is being invoked inside the script so I know whether or not to update the checkpoint
0 -
Sorry for the delay, was looking at env vars / args passed to the script collector. Not seeing anything that would distinguish the run type.
0 -
Feel free to drop a suggestion in the <#CGCU5A18B|feature-request> channel. Seems reasonable to make this available to script collector in the env or params.
0 -
Thank You for looking <@UUP82DJHE> - I was trying that too. I'll just have to be careful :slightly_smiling_face:. I'll drop something in <#CGCU5A18B|feature-request> shortly.
0 -
i've created CRIBL-15090 for this feature enhancement
0 -
Thanks Ben!! It's been a busy day so I hadn't got around to that yet.
0