Logs are not indexed anymore
Posted: Tue May 05, 2015 8:30 am
Hello,
Nagios LS is not displaying new logs anymore on the web interface. I know logs are still sent and received (if I stop the logstash one of my device starts complaining that the destination is not available).
When I reboot one of our log servers (we have a 2 nodes cluster), it sometimes process a bulk of logs, then does nothing anymore...
I can see the following errors in the elasticsearch logs, I don't know if it might be related. All the errors are from the source "vmwnagioslog1", which is the Nagios LS itself (well, on of them).
Nagios LS is not displaying new logs anymore on the web interface. I know logs are still sent and received (if I stop the logstash one of my device starts complaining that the destination is not available).
When I reboot one of our log servers (we have a 2 nodes cluster), it sometimes process a bulk of logs, then does nothing anymore...
I can see the following errors in the elasticsearch logs, I don't know if it might be related. All the errors are from the source "vmwnagioslog1", which is the Nagios LS itself (well, on of them).
Code: Select all
[2015-05-05 13:55:24,383][DEBUG][action.bulk ] [bed86ca0-2b78-4d69-a1da-0e63846227a8] [logstash-2015.05.05][0] failed to execute bulk item (index) index {[logstash-2015.05.05][syslog][Bt0RskshSkGn-oEoZm0aXQ], source[{"message":" apache : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/elasticsearch status","@version":"1","@timestamp":"2015-05-05T11:55:23.000Z","type":"syslog","host":"127.0.0.1","priority":85,"timestamp":"May 5 13:55:23","logsource":"vmwnagioslog1","program":"sudo","severity":5,"facility":10,"facility_label":"security/authorization","severity_label":"Notice"}]}
org.elasticsearch.index.mapper.MapperParsingException: failed to parse [timestamp]
at org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:414)
at org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:648)
at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:501)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:534)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:483)
at org.elasticsearch.index.shard.service.InternalIndexShard.prepareCreate(InternalIndexShard.java:376)
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:430)
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:158)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:522)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:421)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.elasticsearch.index.mapper.MapperParsingException: failed to parse date field [May 5 13:55:23], tried both date format [dateOptionalTime], and timestamp number with locale []
at org.elasticsearch.index.mapper.core.DateFieldMapper.parseStringValue(DateFieldMapper.java:610)
at org.elasticsearch.index.mapper.core.DateFieldMapper.innerParseCreateField(DateFieldMapper.java:538)
at org.elasticsearch.index.mapper.core.NumberFieldMapper.parseCreateField(NumberFieldMapper.java:223)
at org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:404)
... 12 more
[color=#FF0000][b]Caused by: java.lang.IllegalArgumentException: Invalid format: "May 5 13:55:23"[/b][/color]
at org.elasticsearch.common.joda.time.format.DateTimeFormatter.parseMillis(DateTimeFormatter.java:754)
at org.elasticsearch.index.mapper.core.DateFieldMapper.parseStringValue(DateFieldMapper.java:604)
... 15 more