Logstash remove field

Hi I am new to ELK. I am thinking what is the best way to remove field.

  1. Just use mutate filter and remove field
  2. First set field to nil and then use mutate filter and remove

What is the best way to remove the field. And I want to free the space on my heap quickly.

Just use mutate remove_field. As this will remove it before ingest it.

I want to know how it helps for garbage collector to save space on heap

Can you explain, in detail, why you care about that? What do your current GC stats look like? What does the logstash pipeline configuration look like?

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.