I’m trying to delete certain logs from graylog/elasticsearch using a curl query string command with no luck. I know I need to use -XDELETE to remove the log I just what to read it first.
curl -GET ‘http://localhost:9200/graylog_26/message/_query’ -d ‘{“query”:{“query_string”:{“query”:“message:password AND identity:cc*”:"{}"}}}’
Error:
curl -GET ‘http://localhost:9200/graylog_26/message/_query’ -d ‘{“query”:{“query_string”:{“query”:“message:password AND identity:cc”:"{}"}}}’ curl -GET ‘http://localhost:9200/graylog_26/message/_query’ -d ‘{“query”:{“query_string”:{“query”:“message:password AND identity:cc”:"{}"}}}’ {“error”:{“root_cause”:[{“type”:“illegal_argument_exception”,“reason”:“request [/graylog_26/message/_query] contains unrecognized parameter: [â��{â��queryâ��:{â��query_stringâ��:{â��queryâ��:â��message:password]”}],“type”:“illegal_argument_exception”,“reason”:“request [/graylog_26/message/_query] contains unrecognized parameter: [â��{â��queryâ��:{â��query_stringâ��:{â��queryâ��:â��message:password]”},“status”:400}