# Edit filebeat mappings

**URL:** <https://discuss.elastic.co/t/edit-filebeat-mappings/39742>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 21, 2016, 8:59am UTC](https://discuss.elastic.co/t/edit-filebeat-mappings/39742 "2016-01-21T08:59:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSmith2412](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@JSmith2412](https://discuss.elastic.co/u/JSmith2412)\
**Post date:** [January 21, 2016, 8:59am UTC](https://discuss.elastic.co/t/edit-filebeat-mappings/39742/1 "2016-01-21T08:59:53Z")

</div>

I'm streaming data into SolR and I need to produce a JSON field in the FileBeat payload called event\_timestamp. Is there some way I can replicate the @timestamp field, or do I need to edit the FileBeat template? If so how?  
Thanks.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [January 21, 2016, 11:28am UTC](https://discuss.elastic.co/t/edit-filebeat-mappings/39742/2 "2016-01-21T11:28:29Z")

</div>

If you want to do it directly in filebeat this would required to change the source code. I recommend you to do these modifications in Logstash.

I actually wasn't even aware that Filebeat -\> Solr works.

---

<div class="post-metadata">

**Author:** ![JSmith2412](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@JSmith2412](https://discuss.elastic.co/u/JSmith2412)\
**Post date:** [January 21, 2016, 11:54am UTC](https://discuss.elastic.co/t/edit-filebeat-mappings/39742/3 "2016-01-21T11:54:41Z")

</div>

Thanks for your help! I'm using a plugin to stream from logstash to solr, but I think I might ditch solr for elasticsearch since it seems to be a better supported and more well-trodden path.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [January 21, 2016, 12:30pm UTC](https://discuss.elastic.co/t/edit-filebeat-mappings/39742/4 "2016-01-21T12:30:51Z")

</div>

Yes, Filebeat is specifically target for Logstash and Elasticsearch. Let me know you still need some help.

---

<div class="post-metadata">

**Author:** ![JSmith2412](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@JSmith2412](https://discuss.elastic.co/u/JSmith2412)\
**Post date:** [January 27, 2016, 10:21am UTC](https://discuss.elastic.co/t/edit-filebeat-mappings/39742/5 "2016-01-27T10:21:49Z")

</div>

... So I've been using Filebeat but now I need add a bit more structure to my log messages, so I guess I'll use Logstash... But how can I extract a value from the message itself, for example, if my message looks like:

{  
"message" : "reallyUsefulData : heres the information I want"  
}

How can I produce a document that look like this:

{  
"message" : "reallyUsefulData : heres the information I want"  
"reallyUsefulData" : "heres the information I want"  
}

Is this what grok is for?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [January 27, 2016, 10:42am UTC](https://discuss.elastic.co/t/edit-filebeat-mappings/39742/6 "2016-01-27T10:42:30Z")

</div>

yes, this what logstash with grok filters is used for

---

<div class="post-metadata">

**Author:** ![JSmith2412](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@JSmith2412](https://discuss.elastic.co/u/JSmith2412)\
**Post date:** [January 27, 2016, 10:53am UTC](https://discuss.elastic.co/t/edit-filebeat-mappings/39742/7 "2016-01-27T10:53:29Z")

</div>

...awesome, thanks!

---

<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 5, 2017, 9:56pm UTC](https://discuss.elastic.co/t/edit-filebeat-mappings/39742/8 "2017-07-05T21:56:19Z")

</div>


