# Parsing logs of FIlebeat and send to Elastic search

**URL:** https://discuss.elastic.co/t/parsing-logs-of-filebeat-and-send-to-elastic-search/277944
**Category:** Beats
**Tags:** filebeat
**Created:** [July 6, 2021, 9:29am UTC](https://discuss.elastic.co/t/parsing-logs-of-filebeat-and-send-to-elastic-search/277944 "2021-07-06T09:29:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ranvijaysanu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ranvijaysanu/32/86215_2.png) [@ranvijaysanu](https://discuss.elastic.co/u/ranvijaysanu)
#### Post date: [July 6, 2021, 9:29am UTC](https://discuss.elastic.co/t/parsing-logs-of-filebeat-and-send-to-elastic-search/277944/1 "2021-07-06T09:29:16Z")

</div>

I am using filebeat to ship the logs directly to elastic search and then visualizing it in Kibana.

I want to parse the message field to fetch the response code(200 as per the below screenshot) as a separate field in Kibana. How can we do that in Filebeat.

 ![Screenshot 2021-07-06 at 2.56.32 PM](https://us1.discourse-cdn.com/elastic/original/3X/2/1/21a7f57a83eb209dd4ad37ba068fac2eefbfeff0.png)

---

<div class="post-metadata">

### Author: ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)
#### Post date: [July 7, 2021, 2:07am UTC](https://discuss.elastic.co/t/parsing-logs-of-filebeat-and-send-to-elastic-search/277944/2 "2021-07-07T02:07:48Z")

</div>

You can use the dissect processor, [Dissect strings | Filebeat Reference [7.13] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/dissect.html) or grok in logstash/elasticsearch.

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [July 7, 2021, 2:24am UTC](https://discuss.elastic.co/t/parsing-logs-of-filebeat-and-send-to-elastic-search/277944/3 "2021-07-07T02:24:37Z")

</div>

As it looks like an Apache log, you can also try to use the [Apache Module](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-apache.html#filebeat-module-apache) in filebeat to parse your message.

---

<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: [August 4, 2021, 4:25am UTC](https://discuss.elastic.co/t/parsing-logs-of-filebeat-and-send-to-elastic-search/277944/4 "2021-08-04T04:25:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
