05-12-2023 04:22 AM
Hi,
I want to query a specific number of events between 2 dates.
I have this query below, but it is missing the "between current_date and last 5 minutes"
dataset = fortinet_fortiauthenticator_vm_raw | filter deviceSeverity != "information" | filter deviceSeverity != "notice" | filter deviceSeverity = "warning"
| comp count(msg) as counter
| filter counter > 5
Could you help pls
Regards,
05-12-2023 07:00 AM
FabioFerreira,
You can use the config stage command to specify a timeframe like so...
config timeframe = 5m
| dataset = fortinet_fortiauthenticator_vm_raw | filter deviceSeverity != "information" | filter deviceSeverity != "notice" | filter deviceSeverity = "warning"
| comp count(msg) as counter
| filter counter > 5
05-12-2023 07:00 AM
FabioFerreira,
You can use the config stage command to specify a timeframe like so...
config timeframe = 5m
| dataset = fortinet_fortiauthenticator_vm_raw | filter deviceSeverity != "information" | filter deviceSeverity != "notice" | filter deviceSeverity = "warning"
| comp count(msg) as counter
| filter counter > 5
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!