Hello.
I have a problem about backup and restore logs. My Elasticsearch config is as below:
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
#path.data: /path/to/data
path.repo: ["/var/log/back-long/repo"]
#
# Path to log files:
#
path.logs: /var/log/elastic
#
and
# ls -l
drwxr-xr-x. 3 elastic elastic 17 Oct 2 12:30 back-long
When I write below code in "Dev Tools":
PUT /_snapshot/my_backup
{
"type": "fs",
"settings": {
"compress": true,
"location": "/var/log/back-long/repo"
}
}
Then:
{
"statusCode": 502,
"error": "Bad Gateway",
"message": "connect ECONNREFUSED 127.0.0.1:9200"
}
Why? Any idea?
Thank you.