# Not able to pass value from filebeat to logstash

**URL:** <https://discuss.elastic.co/t/not-able-to-pass-value-from-filebeat-to-logstash/221916>\
**Category:** Elasticsearch\
**Created:** [March 3, 2020, 3:25pm UTC](https://discuss.elastic.co/t/not-able-to-pass-value-from-filebeat-to-logstash/221916 "2020-03-03T15:25:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![punit11in](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@punit11in](https://discuss.elastic.co/u/punit11in)\
**Post date:** [March 3, 2020, 3:25pm UTC](https://discuss.elastic.co/t/not-able-to-pass-value-from-filebeat-to-logstash/221916/1 "2020-03-03T15:25:03Z")

</div>

Hi experts,

Im new to elk and need your help here.  
I m trying to pass a value from filebeat to logstash but been unsuccessful.

This is what I have mentioned in filebeat.yml  
########filebeat.yml#########  
output.logstash:

# The Logstash hosts

hosts: ["localhost:5044"]  
fields:  
env: uat  
################

#########logstash.conf#########  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "aia-mpv-%{env}-%{+YYYY.MM.dd}"}  
}  
########################

But in kibana I still see indices as  
aia-mpv-%{env}-2020.03.03  
Value is not getting replaced, please help.

---

<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:** [March 31, 2020, 3:25pm UTC](https://discuss.elastic.co/t/not-able-to-pass-value-from-filebeat-to-logstash/221916/2 "2020-03-31T15:25:05Z")

</div>

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