- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-15-2024 08:49 AM
below is the query so far but what we are trying to do is get a silent log source detection. For example, one of the log source names has not sent a log in x number of hours then alert. Any suggestions?
dataset = panw_ngfw_traffic_raw | fields log_source_name | dedup log_source_name
10-17-2024 10:38 AM
Thank you for that info, that really helped a lot and below is the full query and if you want to limit per log source you can define limit at the end for example | limit 2 etc
dataset = panw_ngfw_traffic_raw
| fields log_source_name, _insert_time, _time
| comp max(_time) as offlinesince by log_source_name
| alter ct = current_time()
| alter diff_in_hour = timestamp_diff(ct, offlinesince, "HOUR")
| filter diff_in_hour > 0
10-16-2024 09:53 PM
I need to test but I think it can be something like below.
dataset = panw_ngfw_traffic_raw | fields log_source_name,_timestamp
|comp max(_timestamp) as offlinesince by log_source_name
|Filter timestamp_diff(currenttime(),offlinesince,"HOUR")> x //x being the hours you mentioned.
Correct the syntaxes wherever necessary using the xql reference.
10-17-2024 10:38 AM
Thank you for that info, that really helped a lot and below is the full query and if you want to limit per log source you can define limit at the end for example | limit 2 etc
dataset = panw_ngfw_traffic_raw
| fields log_source_name, _insert_time, _time
| comp max(_time) as offlinesince by log_source_name
| alter ct = current_time()
| alter diff_in_hour = timestamp_diff(ct, offlinesince, "HOUR")
| filter diff_in_hour > 0
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!