Skip to content

Instantly share code, notes, and snippets.

@aaabramov
Last active February 17, 2019 16:17
Show Gist options
  • Save aaabramov/0e14067bb8b60dbc938b7218d112fa44 to your computer and use it in GitHub Desktop.
Save aaabramov/0e14067bb8b60dbc938b7218d112fa44 to your computer and use it in GitHub Desktop.
Logstash PATCH behavior
input {
# ...
}
output {
elasticsearch {
index => "transactions"
document_id => "%{id}"
action => update
hosts => "es"
}
}
{
"merchant": {
"name": "Super shop",
"url": "https://shop.example.com"
},
"user": {
"first_name": "Joe",
"last_name": "Philips"
},
"order": {
"description": "New TV",
"amount": 150,
"currency": "USD"
},
"transaction": {
"status": "success",
"completed_at": "2019-02-17T17:46:11.557"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment