Skip to content

Instantly share code, notes, and snippets.

@32curveball
32curveball / error2
Last active June 15, 2016 23:05
after commenting out the sincedb_path and start_position
[root@monitor01 conf.d]# /opt/logstash/bin/logstash -f 11-logstash.conf
Error: Expected one of #, => at line 105, column 19 (byte 3393) after filter {
if [type] == "syslog" {
# Split the syslog part and Cisco tag out of the message
grok {
match => ["message", "%{CISCO_TAGGED_SYSLOG} %{GREEDYDATA:cisco_message}"]
}
# Parse the syslog severity and facility
syslog_pri { }
input {
file {
path => ["/var/log/network.log"]
sincedb_path => "/var/log/logstash"
start_position => "beginning"
type => "syslog"
tags => [ "asa_log" ]
}
} #end of input block