InvalidSnapshotNameException
If you are getting the InvalidSnapshotNameException exception in elasticsearch while creating the snapshot for the indices.
{ "error":"InvalidSnapshotNameException[[snapshot_name_goes_here:Logstash] Invalid snapshot name [Logstash], must be lowercase]", "status":400 }
From the exception itself, It is clearly shown that, Elasticsearch accepts only lower-case name for snapshot, This is applicable for both Snapshot and Indices as well.
If you get exception in smaller case as well, please check the snapshot name you have given, The same exception you will get if you give wrong snapshot name.
To get the list of available snapshot, you can make sue of the below command. This will give all the list of snapshots available in this elasticsearch.
curl -XGET 'http://localhost:9200/_snapshot/_all?pretty=true' [ or ] # From the browser or rest client http://<<IP_of-Elasticsearch-Host>>:9200/_snapshot/_all?pretty=true
Output of the above will look below one
{ "es_snapshot_name" : { "type" : "fs", "settings" : { "compress" : "true", "location" : "/opt/ES_Backup_snapshot/es_snapshot_name" } } }