# Logstash email out all fields

**URL:** https://discuss.elastic.co/t/logstash-email-out-all-fields/621
**Category:** Logstash
**Created:** [May 13, 2015, 1:18pm UTC](https://discuss.elastic.co/t/logstash-email-out-all-fields/621 "2015-05-13T13:18:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dalore](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@dalore](https://discuss.elastic.co/u/dalore)
#### Post date: [May 13, 2015, 1:18pm UTC](https://discuss.elastic.co/t/logstash-email-out-all-fields/621/1 "2015-05-13T13:18:57Z")

</div>

With the email output plugin I can't work out how to get it to dump the whole event. Seems like I have to specify the fields that I want.

Trouble is that it's schemaless, unless I go and specify every field that might ever exist the email lacks the information.

I want to be able to do something like email output use rubydebug codec. So it's just a dump of the event and all the available context.

A side but related, anyway to get it to also put a link in the email to the event in kibana?

Thanks

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 13, 2015, 6:24pm UTC](https://discuss.elastic.co/t/logstash-email-out-all-fields/621/2 "2015-05-13T18:24:54Z")

</div>

> With the email output plugin I can't work out how to get it to dump the whole event. Seems like I have to specify the fields that I want.

Yeah, it just doesn't do that right now. You could use a ruby filter to dump all of the message to a field, but then that field would be shipped to other outputs as well. In Logstash 1.5 you could store the field dump as a subfield of [@metadata](http://www.elastic.co/guide/en/logstash/current/configuration.html#metadata) since that field doesn't propagate to outputs.

> A side but related, anyway to get it to also put a link in the email to the event in kibana?

I don't think Kibana supports that kind of deep links. If it did, keep in mind that the document id that exactly identifies a log message isn't known by Logstash since it's assigned by Elasticsearch. If you need to access it through Logstash you'll have to generate a sufficiently unique id yourself and configure the elasticsearch output plugin to use it.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 5:39am UTC](https://discuss.elastic.co/t/logstash-email-out-all-fields/621/3 "2017-07-06T05:39:55Z")

</div>


