Technical manual
...
Advanced setup
Logging with Opensearch on Docker
11 min
in this guide you will learn how to quickstart with detailed logging using opensearch setup opensearch on docker locally pull opensearch images opensearch docker pull opensearchproject/opensearch\ latest opensearch dashboard docker pull opensearchproject/opensearch dashboards\ latest start opensearch containers opensearch docker run d p 9200 9200 p 9600 9600 e "discovery type=single node" e "plugins security disabled=true" opensearchproject/opensearch\ latest opensearch dashboard docker run it d network="host" e "disable security dashboards plugin=true" opensearchproject/opensearch dashboards\ latest verify if the containers are up & running send a request to port 9200 curl https //127 0 0 1 9200 list indices through curl curl x get "https //127 0 0 1 9200/ cat/indices?v" create indices through curl curl x put "https //127 0 0 1 9200/your index name" delete index curl location request delete 'https //127 0 0 1 9200/index name' fetch logs for an index name curl location request get 'https //127 0 0 1 9200/ethereal/ search' \\ \ header 'content type application/json' \\ \ data '{ "query" { "match all" {} }, "size" 10000 }' enable logging configure these variables in the env local file to ensure proper communication with opensearch and to enable client and server log aggregation enable client logging set vite force client log aggregate to true to enable client log aggregation vite force client log aggregate=true enable server logging set disable server log to false to enable server log aggregation disable server log=false