Hello,
I have the following code as a test configuration file.
input {
file {
path => "C:\Users\Admin\Desktop\Logs_elasticsearch\test_10142015.txt"
}
}
filter {
grok {
patterns_dir => "C:\Program Files\logstash-1.5.3\patterns"
match => {"message" => "%{XYZ:time} %{GREEDYDATA:MESSAGE}"}
}
}
output {
elasticsearch {
host => localhost
protocol => "http"
}
stdout { codec => rubydebug }
}
Our pattern file has the following definition: XYZ %{MONTH} %{MONTHDAY}, %{YEAR} %{TIME} (?:AM|am|PM|pm)
I got the following error lines while running the configuration file which I believe can be safely ignored:
C:\Program Files\logstash-1.5.3\bin>logstash.bat -f test.conf
io/console not supported; tty will not be manipulated
'[DEPRECATED] use require 'concurrent'
instead of require 'concurrent_ruby'
Logstash startup completed
- If required, can someone point out any mistake that we may have?
- Also, I would like to validate on JSense (on a browser) if the parsing is being done as expected and that my code is working. What would be the exact command that I should be using?