Hello All,
Trying to understand structure of Logstash pipeline configuration, it seems almost every plugin (that are shipped by default) has some common functions like adding fields, removing tags, etc.
My question is what is the most inexpensive (in context of CPU cycle) way to use them in a pipeline configuration.
Is there any considerable difference between adding a tag with mutate filter or dissect filter? Are they loaded into memory even if I don't use them? If I used dissect plugin one time, should I continue to use it again to add a tag?
input {
}
filter {
# dissect scope
dissect {
# do dissecting
}
# then i need to check for conditions for additional tagging
# then i'm using mutate for adding a tag ?
# could not i use add_tag alone? inside filter scope? should i go with dissect again?
mutate {
add_tag => [ "transactionEnded" ]
}
}
output {
}