[2017-06-06T06:43:36,425][FATAL][logstash.runner ] Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the "path.data" setting.
logstash-simple.conf: Simple file in which I am taking input from keyboard and displaying it.
It was running fine earlier but sometimes it is giving following error:
"Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the "path.data" setting"
This is just a single instance then why this error is coming ?
Yeah I am doing that .... But it is being create again then .... May be
some other problem is there ... I will ask you if I am not being able to
rectify it .... Thanx
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}
output {
elasticsearch { hosts => ["localhost:9200"]
user => elastic
password => changeme
index => "apache-access.log"
}
stdout { codec => rubydebug }
}
This is a demo script. This is working fine on visualising it in kibana
following error is coming ... Any thoughts ?
Index: apache-access.log Shard: 0 Reason:
{"type":"illegal_argument_exception","reason":"Fielddata
is disabled on text fields by default. Set fielddata=true on [timestamp] in
order to load fielddata in memory by uninverting the inverted index. Note
that this can however use significant memory. Alternatively use a keyword
field instead."}
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.