while i'm start the filbeat its show the error and get stopped. Error is "Error Initialising publisher: No outputs are defined. Please define one under the output section."
This is my logstash file
"input {
beats {
port => 10544
}
}
filter{
if [type] == "w3c_csv2" {
# drop comment lines
if ([message] =~ "Name") {
drop{}
}
csv {
columns => ["Name", "volume", "Dept","Unit"]
separator => ","
}
}
}
output{
if [type] == "w3c_csv2" {
elasticsearch {
index => "logstash-%{[type]}-%{+YYYY.MM.dd}"
hosts => "localhost:9200"
document_type => "%{[@metadata][type]}"
}
}
stdout{
codec => rubydebug
}
}"
Kindly help me to resolve the issue and unable to send the value from filebeat to logstash.
HI,
I have indented properly. This is my new code its running but no data is sending to logstash
filebeat:
prospectors:
-
paths:
- C:\elkenter\Data\sample*.csv
document_type: w3c_csv2
config_dir:
registry_file: C:\ProgramData\filebeat\registry
output:
elasticsearch:
enabled: false
hosts: ["localhost:9200"]
logstash:
enabled: true
hosts: ["localhost:10544"]
Remove enabled: true and enabled: false from your configuration file. Those are not valid configuration options and have no effect. Also remove the disabled elasticsearch output from your config file. Like so...
If you start Filebeat from the command line with the -e -v -d "*" it will generate debug information that will help identify the problem. This is similar to what Shaunak was suggesting, just another way of getting the events logged to the console.
Open a command prompt.
Start Filebeat in the foreground .\filebeat.exe -c path\to\config.yml -e -v -d "*"
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.