We had given a task, but facing issue in it. Task is -
Try adding tag A if the data read is a.
a
b
a
c
d
Ensure that the input data is tagged with type as test , and write the output to the file output.txt in the path usr/share/logstash.
input {
stdin {
add_tag => ["A"]
type => "test"
path => ["/usr/share/logstash/output.txt"]
}
}
Please let us know our mistake