talbehat
(shubham jain)
January 31, 2020, 1:08pm
1
Hi,
Please let me know in detail how to use filter keyword in logstash input configuration of logstash input jouranld plugin?
my aim to parse only some logs not all so how to do that.
use of this .....
Filter on events. Not heavily tested.
#
config :filter, :validate => :hash, :required => false, :default => {}
thanks
Badger
January 31, 2020, 3:27pm
2
The filter hash is just passed to the filter function of the journal object, so I would check the documentation for that.
Note that the journald input is a proof-of-concept, not a fully supported plugin.
Badger
February 3, 2020, 12:51pm
4
The documentation I linked to includes an example.
talbehat
(shubham jain)
February 3, 2020, 1:14pm
5
Thanks Badger, yes documentation is needful
talbehat
(shubham jain)
February 4, 2020, 6:46am
6
Hi Badger,
i am using "filter => {syslog_identifier => 'su'}" in input configuration, but it is not showing any affect to use filter setting with journald plugin.
please let me know the right way to use this.
i am using input as below mention
input {
journald {
#filter => 'SYSLOG_IDENTIFIER=su'
lowercase => true
seekto => "tail"
thisboot => true
type => "journald"
tags => [ "journald" ]
path => "/run/log/journal"
sincedb_path => "/tmp/.sincedb_journal"
#filter { SYSLOG_IDENTIFIER => "su" }
filter => {syslog_identifier => 'su'}
}
}
my aim to filter only "_comm" => 'su'.
talbehat
(shubham jain)
February 5, 2020, 10:12am
7
Badger, can you explain above query.
Hi Badger,
please do reply i am also interested to know the answer.
please suggest one example to use filter in input journald plugin.
system
(system)
Closed
March 11, 2020, 6:28am
10
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.