I can't see the root of your problem, but one thing that has helped me immensely in troubleshooting a config file is to comment out everything but the first step, and then "build" the config back up from there, doing the --configtest thing every step. So you could start with
input {
file {
path => [ "Documents/apache-sample-dataset.log" ]
type => "apache"
start_position => "beginning"
}
}
Im Using mac im unable to configure apache log.
im getting error " Error: Expected one of #, ", ', -, [, {, ] at line 4, column 14 (byte 33) after input { file { path => [
i tried
path => "/Users/tcstsb3/Downloads/log/access_log.log"
path => ["/user....../apache.log"]
path => ["user....../apache.log"]
same error only im getting,
ANY ONE PLZ HELP ME
input {
file {
path => [“/Users/tcstsb3/Downloads/log/access_log”]
type => "apache"
}
}
filter {
grok {
match => { “message” => “%{COMBINEDAPACHELOG}” }
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.