Skip to content

Commit

Permalink
Add logit DfEAnalyticsSendEvents msg supression
Browse files Browse the repository at this point in the history
  • Loading branch information
RMcVelia committed Jan 30, 2025
1 parent e398954 commit 1a5f3ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions documentation/logit-io.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,18 @@ filter {
remove_field => ["message"]
}

# TEMP drop DfE::Analytics::SendEvents of Type Info
if ([app][payload][job_class] == "DfE::Analytics::SendEvents" and [app][level] == "info") {
drop {}
}

# TEMP remove stack_trace for DfE::Analytics::SendEvents of Type error
if ([app][payload][job_class] == "DfE::Analytics::SendEvents" and [app][level] == "error") {
mutate {
remove_field => "[app][exception][stack_trace]"
}
}

# Remove stack trace for 404 errors in rails apps, as it is large and adds no value
if [app][exception][name] == "ActionController::RoutingError" {
mutate {
Expand Down

0 comments on commit 1a5f3ee

Please sign in to comment.