Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schedule changes for vuln detection #609

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions cyences_app_for_splunk/default/savedsearches.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3802,11 +3802,11 @@ alert.suppress = 0
counttype = number of events
quantity = 0
relation = greater than
cron_schedule = 0 */4 * * *
cron_schedule = 5 */4 * * *
description = Newly detected Vulnerabilities from vulnerability data. \
\
Data Collection - Qualys, Tenable, Nessus, CrowdStrike Spotlight vulnerability, etc..
dispatch.earliest_time = -4h@m
dispatch.earliest_time = -4h@h
dispatch.latest_time = now
display.general.type = statistics
display.page.search.tab = statistics
Expand All @@ -3816,7 +3816,7 @@ request.ui_dispatch_view = search
search = | inputlookup cs_all_vuln where (status="open" OR status="reopened") \
| dedup vul_id \
| eval _time=first_found \
| eval days_ago=relative_time(now(), "-4h@m") \
| eval days_ago=relative_time(now(), "-4h@h") \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why @h?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this alert run after 5 min of lookup gen alert. To cover that 5 min. kept it to @h

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense!!!

| where _time >= days_ago \
| fields - days_ago time _time \
| `cs_human_readable_time_format(first_found)` \
Expand Down Expand Up @@ -6166,11 +6166,11 @@ search = | inputlookup cs_all_assets \
disabled = 0
enableSched = 1
alert.track = 0
cron_schedule = 0 0 * * *
description = This savedsearch update the vulnerability inventory every day and generates lookup for all vulnerability data. \
cron_schedule = 0 */4 * * *
description = This savedsearch update the vulnerability inventory every 4 hours and generates lookup for all vulnerability data. \
\
Data Collection - Qualys, Tenable, Nessus vulnerability data
dispatch.earliest_time = -1d@m
dispatch.earliest_time = -4h@m
dispatch.latest_time = now
display.general.type = statistics
display.page.search.tab = statistics
Expand Down