How can I get logstah add the date field that I have added to my jboss logs?
The log looks like:
August 10 2015 10:07:01,048 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
My indexer is:
input {
redis {
host => "XXX.XXX.XXX.XXX"
port => 6379
data_type => "list"
key => "logstash"
codec => "json"
}
}
filter {
if [type] == "jboss" {
grok {
match => [
"message",
"%{TIME:time} %{LOGLEVEL:level}.*[(?[^]]+)] ((?[^)]+)) %{GREEDYDATA:message}"
]
overwrite => ["message"]
}
}
multiline {
type => "jboss"
pattern => "^\s"
what => "previous"
}
}
output {
elasticsearch {
host => "XXX.XXX.XXX.XXX"
port => 9300
}
}
I need the time field to show both the log date and the time.