Hi,
I have installed filebeat client on AWS EC2 which is configured to push messages to the AWS Elasticsearch service endpoint. Below is the detail of the filebeat yml file.
## Filebeat ###
filebeat:
# List of prospectors to fetch data.
prospectors:
# Each - is a prospector. Below are the prospector specific configurations
-
paths:
- /var/log/*/*.log
#- c:\programdata\elasticsearch\logs\*
output:
### Elasticsearch as output
elasticsearch:
# IPv6 addresses should always be defined as: https://[2001:db8::1]:9200
hosts: ["search-domain-XXXXXXX-eu-west-1.es.amazonaws.com:80"]
logging:
# Send all logging output to syslog. On Windows default is false, otherwise
# default is true.
to_syslog: true
# Write all logging output to files. Beats automatically rotate files if rotateeverybytes
# limit is reached.
to_files: true
# To enable logging to files, to_files option has to be set to true
files:
# The directory where the log files will written to.
path: /var/log/mybeat
# The name of the files where the logs are written to.
#name: mybeat
# Configure log file size limit. If limit is reached, log file will be
# automatically rotated
rotateeverybytes: 10485760 # = 10MB
# Number of rotated log files to keep. Oldest files will be deleted first.
#keepfiles: 7
# Sets log level. The default log level is error.
# Available log levels are: critical, error, warning, info, debug
level: debug
================================================================================
I am unable to perform the bulk upload to the Elasticsearch. Below is the debug logs for the same.
2016-02-16T18:30:56Z DBG ES Ping(url=http://search-domain-XXXXXXXX.eu-west-1.es.amazonaws.com:80, timeout=1m30s)
2016-02-16T18:30:56Z DBG Ping status code: 200
2016-02-16T18:30:56Z DBG Sending bulk request to http://search--domain-XXXXXXXX.eu-west-1.es.amazonaws.com:80/_bulk
2016-02-16T18:30:56Z ERR Failed to perform any bulk index operations: 400 Bad Request
2016-02-16T18:30:56Z INFO Error publishing events (retrying): 400 Bad Request
2016-02-16T18:30:56Z INFO send fail
2016-02-16T18:30:56Z INFO backoff retry: 2s
2016-02-16T18:30:58Z DBG End of file reached: /var/log/elasticsearch/elasticsearch_index_indexing_slowlog.log; Backoff now.
2016-02-16T18:30:58Z DBG End of file reached: /var/log/elasticsearch/elasticsearch.log; Backoff now.
2016-02-16T18:30:58Z DBG End of file reached: /var/log/elasticsearch/elasticsearch_index_search_slowlog.log; Backoff now.
2016-02-16T18:30:58Z DBG ES Ping(url=http://search--domain-XXXXXXXX.eu-west-1.es.amazonaws.com:80, timeout=1m30s)
2016-02-16T18:30:58Z DBG Ping status code: 200
2016-02-16T18:30:58Z DBG Sending bulk request to http://search--domain-XXXXXXXX.eu-west-1.es.amazonaws.com:80/_bulk
2016-02-16T18:30:58Z ERR Failed to perform any bulk index operations: 400 Bad Request
2016-02-16T18:30:58Z INFO Error publishing events (retrying): 400 Bad Request
2016-02-16T18:30:58Z INFO send fail
2016-02-16T18:30:58Z INFO backoff retry: 4s
2016-02-16T18:31:02Z DBG End of file reached: /var/log/elasticsearch/elasticsearch_index_indexing_slowlog.log; Backoff now.
2016-02-16T18:31:02Z DBG End of file reached: /var/log/elasticsearch/elasticsearch.log; Backoff now.
2016-02-16T18:31:02Z DBG End of file reached: /var/log/elasticsearch/elasticsearch_index_search_slowlog.log; Backoff now.
2016-02-16T18:31:02Z DBG ES Ping(url=http://search--domain-XXXXXXXX.eu-west-1.es.amazonaws.com:80, timeout=1m30s)
2016-02-16T18:31:02Z DBG Ping status code: 200
2016-02-16T18:31:02Z DBG Sending bulk request to http://search--domain-XXXXXXXX.eu-west-1.es.amazonaws.com:80/_bulk
2016-02-16T18:31:02Z ERR Failed to perform any bulk index operations: 400 Bad Request
2016-02-16T18:31:02Z INFO Error publishing events (retrying): 400 Bad Request
2016-02-16T18:31:02Z INFO send fail
2016-02-16T18:31:02Z INFO backoff retry: 8s
2016-02-16T18:31:10Z DBG ES Ping(url=http://search--domain-XXXXXXXX.eu-west-1.es.amazonaws.com:80, timeout=1m30s)
2016-02-16T18:31:10Z DBG Ping status code: 200
2016-02-16T18:31:10Z DBG Sending bulk request to http://search--domain-XXXXXXXX.eu-west-1.es.amazonaws.com:80/_bulk
2016-02-16T18:31:10Z ERR Failed to perform any bulk index operations: 400 Bad Request
2016-02-16T18:31:10Z INFO Error publishing events (retrying): 400 Bad Request
2016-02-16T18:31:10Z INFO send fail
Kindly help me to overcome this issue.
Thanks
Pratik