Ignoring logs
To ignore logs you can configure an “ignore logs” denylist in your AppSignal integration configuration. By adding log messages to this list the integrations will filter out log lines containing those messages from data sent to AppSignal. This guide will show you how to configure your ignore errors denylist based on what language your application uses:Log message matching syntax
A log line will be ignored if its message contains any of the messages in the “ignore logs” denylist. For example, an ignore logs entry with the wordstart will ignore log lines whose messages are “Process started” or “Process failed to start”.
A limited subset of regular expression syntax can be used to narrow the log lines accepted:
^will match the beginning of the message$will match the end of the message.*will match any characters
^job will match any log line whose message starts with “job”, like “job #123 completed successfully”, but it will not ignore any log lines that contain “job” at any other position in the message.
Similarly, completed successfully$ will ignore a log line whose message ends with the words “completed successfully”, but it will not ignore any log lines that contain “completed successfully” at any other position in the message.
Finally, ^job .* completed successfully$ allows you to ignore log lines that start with “job” and finish with “completed successfully”, regardless of what the log message contains in between those words.
Log message matching is case-sensitive, meaning that ignoring job (lowercase j) does not ignore the log message “Job completed” (uppercase J).
Ruby
To ignore logs in Ruby, add the following to your AppSignal configuration file. Theignore_logs value is an Array of Strings.
Read More
- Read more about the Ruby
ignore_logsconfig option. - Logging with AppSignal for Ruby.
Elixir
To ignore logs in Elixir, add the following to your AppSignal configuration file. Theignore_logs value is a List of Strings.
Read More
- Read more about the Elixir
ignore_logsconfig option. - Logging with AppSignal for Elixir.
Node.js
To ignore logs in Node.js, add the following to your AppSignal configuration file. TheignoreLogs value is an Array of Strings.
Read More
- Read more about the Node.js
ignoreLogsconfig option. - Logging with AppSignal for Node.js.
Go
To ignore logs in Go applications, configure theignore_logs config option.
See the Go configuration page for more information on how to configure OpenTelemetry for Go apps.
Read More
- Read more about the Go
ignore_logsconfig option.
Java
To ignore logs in Java applications, configure theignore_logs config option using the OTEL_RESOURCE_ATTRIBUTES environment variable. The ignore_logs value is an array of strings.
Read More
- Read more about the Java
ignore_logsconfig option.
PHP
To ignore logs in PHP applications, configure theignore_logs config option. The ignore_logs value is an array of strings.
Read More
- Read more about the PHP
ignore_logsconfig option.