# Grook Format For APM Nginx Log

**URL:** https://discuss.elastic.co/t/grook-format-for-apm-nginx-log/265439
**Category:** Logstash
**Created:** [February 25, 2021, 6:36am UTC](https://discuss.elastic.co/t/grook-format-for-apm-nginx-log/265439 "2021-02-25T06:36:16Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [February 25, 2021, 4:38pm UTC](https://discuss.elastic.co/t/grook-format-for-apm-nginx-log/265439/2 "2021-02-25T16:38:36Z")

</div>

Use a [kv](https://www.elastic.co/guide/en/logstash/current/plugins-filters-kv.html) filter. If there is a header on the line then remove it using [dissect](https://discuss.elastic.co/t/parsing-firewall-logs-in-logstash/212786/2).

---

_[View the full topic](https://discuss.elastic.co/t/grook-format-for-apm-nginx-log/265439)._
