# Logstash File pattern are more , how to reduce the number of patterns

**URL:** <https://discuss.elastic.co/t/logstash-file-pattern-are-more-how-to-reduce-the-number-of-patterns/167861>\
**Category:** Elasticsearch\
**Created:** [February 11, 2019, 1:16pm UTC](https://discuss.elastic.co/t/logstash-file-pattern-are-more-how-to-reduce-the-number-of-patterns/167861 "2019-02-11T13:16:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![shyamari](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@shyamari](https://discuss.elastic.co/u/shyamari)\
**Post date:** [February 11, 2019, 1:27pm UTC](https://discuss.elastic.co/t/logstash-file-pattern-are-more-how-to-reduce-the-number-of-patterns/167861/2 "2019-02-11T13:27:07Z")

</div>

Hi Priya,

You could use below link for the information.

> [@Logstash plus filebeat pipeline](https://discuss.elastic.co/t/logstash-plus-filebeat-pipeline/162282):
>
> Hi there, I have a api log file with the following format ... 2018.27.12 17:37:28.423 GET /api/v1/catalogManagement/productOffering 200 4 2018.27.12 17:37:28.242 GET /api/v1/addressManagement/address 200 1214 ... I would like to extract all the fields from log file and parse with grok to setup the @timestamp according first two records in each row Thanks!

---

_[View the full topic](https://discuss.elastic.co/t/logstash-file-pattern-are-more-how-to-reduce-the-number-of-patterns/167861)._
