Logstash Transforming the Logs - LogStash

What is Logstash Transforming the Logs?

Logstash suggests numerous plugins to change the parsed log. These plugins can Add, Delete, and Update fields in the logs for better thoughtful and querying in the output systems.

We are by means of the Mutate Plugin to add a field name user in every line of the input log.

Install the Mutate Filter Plugin

To install the mutate filter plugin; we can use the resulting command.

logstash.conf

In this config file, the Mutate Plugin is added after the Aggregate Plugin to add a new field.

Run Logstash

We can run Logstash by using the resulting command.

input.log

The resulting code block shows the input log data.

output.log

You can see that there is a new field named “user” in the output events.


All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

LogStash Topics