Open DonHaul opened 1 month ago
The following command should be added so that by default opensearch is logging the queries. this is helpful to identify problems (for example with the search) The logs are sent to the console
curl --request PUT \ --url http://localhost:9200/_cluster/settings \ --header 'Content-Type: application/json' \ --data ' { "persistent": { "logger.org.opensearch.search.search": "DEBUG", "logger.org.opensearch.search.slowlog.query": "TRACE", "logger.org.opensearch.search.slowlog.fetch": "TRACE" } }'
curl --request PUT \ --url http://localhost:9200/backoffice-backend-local-workflows/_settings \ --header 'Content-Type: application/json' \ --data '{ "index.search.slowlog.threshold.query.warn": "1s", "index.search.slowlog.threshold.query.info": "500ms", "index.search.slowlog.threshold.query.debug": "100ms", "index.search.slowlog.threshold.query.trace": "1ms", "index.search.slowlog.level": "trace" }'
The following command should be added so that by default opensearch is logging the queries. this is helpful to identify problems (for example with the search) The logs are sent to the console