Replies: 2 comments 3 replies
-
datadog_exclude_log: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
datadog_exclude_log: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting error the filter. i will appreciate any assistance
datadog_exclude_log:
type: filter
condition: |
structured, err = parse_regex(.message, r'^(-|(?P\S+)) - (-|(?P<user_agent>\S+)) [(?P.+)] "(?P(?P\w+) (?P\S+) (?P\S+))" (?P\d+) (?P\d+) "(-|(?P.+))" "(-|(?P.+))" "(-|(?P<http_x_forwarded_for>.+))" "(-|(?P.+))" "(-|(?P<session_cookie>.+))" "(-|(?P<endpoint.request>\d+.\d+))" "user[(-|(?P<http_method>.+))]"$')
if err != null {
return true # Exclude logs with parsing errors
}
return (
.level != "info" ||
.logger_name != "INBOUND_REQUEST" ||
(
.status != "DEBUG" &&
.status != "INFO"
) ||
.request_time != to_float!(.request_time) ||
.timestamp != parse_timestamp!(.timestamp, "%d/%b/%Y:%H:%M:%S %z")
)
Beta Was this translation helpful? Give feedback.
All reactions