How do I add a custom field to logstash/kibana?
<p>I am using <a href="https://github.com/vklochan/python-logstash" rel="nofollow">python-logstash</a> in order to write to logstash. It offers the option to add extra fields  but problem is that all fields are under the <code>message</code> field. What I want to accomplish is adding a new field at the higher level. </p>

<p>I found the option to do that from the <code>logstash.config</code> (using <code>ruby</code>/<code>grok</code>/<code>mutate</code> plugins) but this solution is not a scalable one (Would have to configure for every machine instance)</p>

<p>Something like:</p>

<pre><code>logger.info('my message')
</code></pre>

<p>And in Kibana I will see:  </p>

<pre><code>{
'@timestamp': ...
...
...
'message': 'my message'
'new_field' : 'new_field_value'
}
</code></pre>

<p>How do I do that?</p>

<p>Thanks.</p>