How can I extend a JSON document with an extra field?


Our application writes logs in JSON format so it's quite straightforward to send them to Elasticsearch using om_http module. However we need to enrich JSON logs with additional information like application name. I was searching for the solution and found that I could do the following:

AskedMarch 24, 2015 - 4:18pm