Live Workshop: Integrate Google SecOps with Bindplane - Join Us on January 29th at 11 AM ET!Sign Up Now
BindPlane OP

How to Remove Fields with Empty Values From Your Logs

Ryan Goins
Ryan Goins
Share:

Much of the log data we handle doesn't offer substantial insight and can be conveniently removed from your logs, helping us reduce costs. What may seem like a small adjustment, like deleting an attribute, can have significant implications when scaled up.

A typical case involves fields in your logs presenting empty values or housing data considered irrelevant.

Below, we’ll take a look at a few examples of what this looks like and how you can take action in BindPlane OP.

Nginx

The Nginx logs presented below contain several fields where the value is simply a "-". This is a common occurrence with Nginx, providing no substantial value. It's recommended to eliminate these fields.

Postgres

The Postgres logs displayed below have a 'role' and 'user' field, both of which are entirely empty.

Here’s how you can remove these fields in BindPlane OP

  1. Incorporate the “Delete Empty Values” processor into your pipeline.
  2. Determine the types of values you want the processor to search for. By default, it targets null values, but it can also identify empty lists or maps.
  3. Advanced configuration:
  • If there are any fields you don’t ever want to be removed, specify them as an exclusion.
  • Specify strings that the processor should consider as empty. For instance, in the case of the Nginx logs above, we want to regard “-” as an empty string and should include it in this list.
  1. Use Live Preview to validate the processor is working as expected!

That’s it! Check out the video tutorial below if you’d like to see this in action.

For questions, requests, and suggestions, reach out to us or join our community slack channel.

Ryan Goins
Ryan Goins
Share:

Related posts

All posts

Get our latest content
in your inbox every week

By subscribing to our Newsletter, you agreed to our Privacy Notice

Community Engagement

Join the Community

Become a part of our thriving community, where you can connect with like-minded individuals, collaborate on projects, and grow together.

Ready to Get Started

Deploy in under 20 minutes with our one line installation script and start configuring your pipelines.

Try it now