Hello All,
Is there any order of logstash pipelines config: I've below pipelines:
[root@gzp-p-qv-logst-3 pipeline]# ls -larth
total 60K
drwxr-xr-x. 3 logstash logstash 42 Oct 11 2019 ..
-rw-r--r--. 1 root root 99 Nov 11 2019 01-input.conf.j2
-rw-r--r--. 1 root root 784 Nov 11 2019 50-auditbeat.conf.j2
-rw-r--r--. 1 root root 1019 Nov 11 2019 50-cassandra.conf.j2
-rw-r--r--. 1 root root 963 Nov 11 2019 50-httperror.conf.j2
-rw-r--r--. 1 root root 799 Nov 11 2019 50-kerberos.conf.j2
-rw-r--r--. 1 root root 4.5K Nov 11 2019 50-platform.conf.j2
-rw-r--r--. 1 root root 3.6K Nov 11 2019 50-realm.conf.j2
-rw-r--r--. 1 root root 565 Nov 11 2019 50-secure.conf.j2
-rw-r--r--. 1 root root 372 Nov 11 2019 98-default_indexes.conf.j2
-rw-r--r--. 1 root root 2.4K Nov 13 2019 97-outputlogstash.conf
-rw-r--r--. 1 root root 757 Mar 2 01:41 49-nginx.conf.j2
-rw-r--r--. 1 root root 2.3K Apr 1 18:35 99-output.conf
-rw-r--r--. 1 root root 566 Apr 1 19:04 51-applog.conf.j2
drwxr-xr-x. 2 root root 4.0K Apr 1 21:52 .
[root@gzp-p-qv-logst-3 pipeline]#
I've created 51-applog.conf.j2 like below:
filter {
if ("qapi" in [tags])
{
#mutate { replace => { type => "apache_access" } }
grok {
match => { "message" =>
["%{IP:client} %{NOTSPACE} %{NOTSPACE} \[%{HTTPDATE:timestamp}\] \"%{NOTSPACE:request_type} %{NOTSPACE:URIpath} %{NOTSPACE} %{INT:http_status} %{NUMBER:payload} %{QUOTEDSTRING}
%{QUOTEDSTRING} %{BASE16FLOAT:response_time}"]}
add_field => [ "tag", "applog" ]
}
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
mutate { remove_field => [ "host", "message", "@version","timestamp" ] }
}
}
But seems not working.....
Please help me in understanding the order of pipeline and naming conventions.
Regards.
Banik