Hi ?
I have windows server 2012 and installed logstash 2.2 and elastic 2.2 on it.
Log stash config:
input {
file {
start_position => "beginning"
type => "log4net"
path => ["D:/Other Programms/ELK/logstash/bin/logs/log.log"]
}
}
filter {
if [type] == "log4net" {
grok {
pattern => ["%{TIMESTAMP_ISO8601:sourceTimestamp} [%{DATA:threadId}] %{LOGLEVEL:level} %{WORD:logger}"]
}
}
}
output {
stdout {
codec => line {
format => " Hello - %{sourceTimestamp}. "
}
}
file {
path => ["D:/Other Programms/ELK/logstash/bin/logs/test.log"]
}
elasticsearch {
hosts => ["localhost:9200"]
index => "Logs"
}
}
Logstash starting and work, but i cant find logs in elasticstash !
elasticstash works