How do I get a current value from a regular expression to show in SingleStat

Hi,

I’m using grafana with elastisearch and I have the following log line:

“Mongo status update. [3] events to reprocess from queue [suspended_queue]”

I need to match the number of events, in this case “3”.

I’m trying to use this query in SingleStat:

message.keyword: /Mongo status update. [(<0-9>)+] events to reprocess from queue [suspended_queue]/

How can I get the value from “(<0-9>)+” to show that in my SingleStat ?

Thanks for any help.

Not sure that’s supported. Would recommend you to write that numeric value to it’s own field.

Marcus