Hello need help to extract the number from this result:
Total number of files under /wmq/logs/AMXDEVRC120/active is: 184
i'm trying to get the total number of files from this directory and compare if over 500.
thank you,
thanks for the help
Use rex.
... | rex "is: (?<numFiles>\d+)"
| stats sum(numFiles) as TotalFiles
| where TotalFiles > 500