6 Filtering and extrapolation

This chapter covers

  • Applying filters to control log events
  • Implementing the record_transformer filter
  • Extrapolating information from log events
  • Injecting environmental information into a log event
  • Masking elements of log events to maintain data security

In chapter 5, we touched upon using the filter directive to send log events to standard out. Using filters this way, while helpful, is almost a sideshow to the full capability of the directive. The filter directive can help us to

  • Filter out specific log events, so only particular log events go to particular consuming systems

  • Filter out specific pieces of a log event message and allow us to record them as unique attributes of the log event (ultimately making ...

Get Logging in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.