Use this procedure to upload logs to another Elasticsearch server for off-site viewing.
The es_upload.sh script provides a template to convert log files into a format, which can be inserted into Elasticsearch. The script uploads the files to the server. You must modify the script based on the URL, credentials, and other security considerations for the Elasticsearch server.
The script accepts the URL to the Elasticsearch server and the index used in the Elasticsearch server. The script leaves behind the converted files for debugging purposes.