# Filebeat & Logstash configuration 6.5.4

**URL:** <https://discuss.elastic.co/t/filebeat-logstash-configuration-6-5-4/163872>\
**Category:** Logstash\
**Created:** [January 11, 2019, 9:15am UTC](https://discuss.elastic.co/t/filebeat-logstash-configuration-6-5-4/163872 "2019-01-11T09:15:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsh\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harsh_sharma/32/32093_2.png) [@Harsh\_Sharma](https://discuss.elastic.co/u/Harsh_Sharma)\
**Post date:** [January 11, 2019, 9:15am UTC](https://discuss.elastic.co/t/filebeat-logstash-configuration-6-5-4/163872/1 "2019-01-11T09:15:46Z")

</div>

Hi There,  
I have installed ELK & filebeat version 6.5.4. Kibana & ES configuration is good.  
From a server I want to send logs (.csv format) from 3 different location but facing problem in configuration somewhere i think.  
Below is my configuration please check -

Filebeat 6.5.4 -

```
filebeat.inputs:
- type: log
  enabled: true
  paths:
    - /data/maalog/maa-coupon.log
  fields:
    log_type: maa-coupon
  fields_under_root: true

- type: log
  enabled: true
  paths:
    - /data/maalog/maa-tran.log
  fields:
    log_type: maa-tran
# input_type: log
  fields_under_root: true

output.logstash:
  # The Logstash hosts
  hosts: ["10.5.100.100:5000"] 

```

Logstash 6.5.4 -

```
input {
  beats {
    port => "5000"
  }
}

filter{

        if "maa-coupon" in [fields][log_type] {
        csv{
                separator => ","
                columns => ["lob","userId","mobileNo","circleId"]
           }
}
}

output {
  if "maa-coupon" in [fields][log_type] {
     elasticsearch {
        hosts => ["10.5.100.100:9200"]
        index => "test-coupon-log-%{+YYYY.MM.dd}"
      #workers => 4
     }
  }
}

```

when I don't use filter then logs were sent to ES & visible in Kibana but in message section only. it'll not appear in separate fields as there is no grok/filter.

What wrong in my configuration & how can I achieve my goal? Please suggest.  
Thanks.

---

<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:** [January 11, 2019, 9:49am UTC](https://discuss.elastic.co/t/filebeat-logstash-configuration-6-5-4/163872/2 "2019-01-11T09:49:50Z")

</div>

> [@Harsh\_Sharma](#):
>
> "maa-coupon" in [fields][log\_type]

If you have fields\_under\_root set true then you can refer to just [log\_type], not [fields][log\_type]

---

<div class="post-metadata">

**Author:** ![Harsh\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harsh_sharma/32/32093_2.png) [@Harsh\_Sharma](https://discuss.elastic.co/u/Harsh_Sharma)\
**Post date:** [January 11, 2019, 1:38pm UTC](https://discuss.elastic.co/t/filebeat-logstash-configuration-6-5-4/163872/3 "2019-01-11T13:38:13Z")

</div>

> [@Harsh\_Sharma](#):
>
> log\_type]

Thanks Badger. I got you & its working now.

---

<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:** [February 8, 2019, 1:38pm UTC](https://discuss.elastic.co/t/filebeat-logstash-configuration-6-5-4/163872/4 "2019-02-08T13:38:14Z")

</div>

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