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

Range timestamp filter #3289

Open
Nib0ort opened this issue Aug 18, 2023 · 0 comments
Open

Range timestamp filter #3289

Nib0ort opened this issue Aug 18, 2023 · 0 comments

Comments

@Nib0ort
Copy link

Nib0ort commented Aug 18, 2023

Hello
I want this rule to send me an email when elastalert detect at least 5 times in less 10 secondes a certain type of log containing a string of characters.
Here my rule, but I dont get email with 6 logs sent in less 10 secondes.
I'm using this command to send logs :
logger -t corosync is down

`
es_host: ip
es_port: port
name: TEST
type: frequency
index: filebeat-*
filter:

  • query_string:
    query: "message:"is down""
  • range:
    "@timestamp":
    gte: "now-10s/s"
    timeframe:
    seconds: 10
    is_enabled: true
    num_events: 5
    alert:
  • "email"
    alert_text_type: alert_text_only
    alert_text: |
    Link is down on host {0}
    See full message : {1}
    THIS IS A TEST MESSAGE
    alert_text_args: ["host.name", "message"]
    alert_subject: "[ElastAlert] PROXMOX : Link down alert"
    from_addr: "addresse"
    email:
  • "myemail"
    smtp_host: smtp_host
    smtp_port: smtp_port
    smtp_auth_file: smtp_auth.yaml
    smtp_ssl: false
    `

Thanks for helping

@Nib0ort Nib0ort changed the title Rang timestamp filter Range timestamp filter Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant