Logstash on many files

Hi,

My Kibana5.6.8 logstash configuration seems only reading one log file ?
then logdate field is viewing as string and not as date ?
My logstash.conf on /home/elastichsearch/confLogs is

input {
file {
type => "static"
path => "/home/elasticsearch/static_logs/**/Web.log" exclude => "*.zip"
start_position => beginning
sincedb_path => "/dev/null"
}
}

filter {
if [type] == "static" {
if [message] !~ /(.+)/ {
drop { }
}

filter {
if [type] == "static" {
if [message] !~ /(.+)/ {
drop { }
}
grok{
patterns_dir => "./patterns"
overwrite => [ "message" ]
# 2017-08-07 11:47:35,466 INFO [http-bio-10.60.2.19-10267-exec-60] jsch.DeployManagerFileUSImpl (DeployManagerFileUSImpl.java:155) - Deconnexion de l'hote qvirmqa3
# 2017-08-07 11:47:51,775 ERROR [http-bio-10.60.2.19-10267-exec-54] service.BindingsRSImpl (BindingsRSImpl.java:143) - Can't find bindings file deployed on server
# 2017-08-03 16:01:11,352 WARN [Thread-552] pcf2.AbstractObjetMQDAO (AbstractObjetMQDAO.java:137) - Descripteur de
match => [ "message", "%{TIMESTAMP_ISO8601:logdate},%{INT} %{LOGLEVEL:logLevel} [(?[^]]+)] %{JAVACLASS:package} (%{JAVAFILE:className}:%{INT:line}) - %{GREEDYDATA:message}" ]
}
# 2017-08-03 16:01:11,352
date{
match => [ "logdate", "YYYY-MM-dd hh:mm:ss" ]
target => "logdate"
}
}
}
output {
elasticsearch { hosts => ["192.168.99.100:9200"]}

My logs directory, with load balanced logrotate files

static_logs
--prd1
----mlog Web.log
----mlog Web.log.1
----mlog Web.log.2
--prd2
----mlog Web.log
----mlog Web.log.2

When i replace all theses files with one logfile and
path => "/home/elasticsearch/static_logs/Web.log" exclude => ".zip"

That's Ok kibana 5.6.8 see logdate as date field and not as string field !!
It seems me my logs files are not correctly order by writting date ?

Why ?
Regards

Hi

If all my imput files are more 140M, kibana not seeing logdate field as an date field, but as an string field !!

Why ? How increase limit ?
Regards
I use logstash/kibana 5.6.8 and each separate log file are 20M

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.