Last active
February 17, 2019 16:17
-
-
Save aaabramov/0e14067bb8b60dbc938b7218d112fa44 to your computer and use it in GitHub Desktop.
Logstash PATCH behavior
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
# ... | |
} | |
output { | |
elasticsearch { | |
index => "transactions" | |
document_id => "%{id}" | |
action => update | |
hosts => "es" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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