message send to ELK with curl
Send message
curl -XPOST "http://localhost:9200/my-first-index/message" -d'
{
"message": "hello!"
}' \
-H "Content-Type: application/json" \
-u elastic:changemeSearch
curl -XPOST "http://localhost:9200/_search" -d'
{
"query": {
"query_string": {
"query": "hello"
}
}
}' \
-H "Content-Type: application/json" \
-u elastic:changeme | jq