Differences between revisions 3 and 4
Revision 3 as of 2021-11-18 01:21:41
Size: 1489
Editor: PieterSmit
Comment:
Revision 4 as of 2021-11-18 01:42:38
Size: 1649
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 35: Line 35:

== Find unparsed datadog logs ==
 * https://docs.datadoghq.com/logs/guide/detect-unparsed-logs/
   * Search for "datadog.pipelines:false" in log explorer.

DataDog/LambdaForwarder

Datadog Monitor - email from aws tag

  • Goal: Send alert email to address in aws tag.
    • e.g. domain test.com and tag "AlertEmailPrefix"

      #Datadog - alert
      {{#is_alert}}# Alert msg over{{threshold}}%{{/is_alert}} 
      {{#is_warning}}# Warnign msg over {{warn_threshold}}%{{/is_warning}}
      {{#is_recovery}}# Fixed {{warn_threshold}}%{{/is_recovery}}
      
      {{^is_recovery}}## Currently fine {{value}}.{{/is_recovery}}
      
       - Host: {{host.name}}
       - Device: {{device.name}}
       - value: {{value}} {{#is_match "host.env" ""}}
       - Environment: {{host.env}}
      {{#is_match "host.account" ""}}- Account: {{host.account}}{{/is_match}}
      {{#is_match "host.region" ""}}- Region: {{host.region}}{{/is_match}}
      TEST:
      host.name_tag: "{{ host.name_tag }}"
      AlertEmailPrefix: "{{host.alertemailprefix}}"
      
      {{#is_match "host.alertemailprefix" ""}}@{{host.alertemailprefix}}@test.com{{/is_match}}{{^is_match "host.alertemailprefix" ""}}#No aws tag "AlertEmailPrefix" to send email to{{/is_match}}

Find unparsed datadog logs

DataDog/LambdaForwarder (last edited 2021-11-18 01:42:38 by PieterSmit)