# Creating index name as per log file name

**URL:** https://discuss.elastic.co/t/creating-index-name-as-per-log-file-name/281677
**Category:** Logstash
**Created:** [August 17, 2021, 11:52am UTC](https://discuss.elastic.co/t/creating-index-name-as-per-log-file-name/281677 "2021-08-17T11:52:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mangesh\_shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mangesh_shinde/32/93271_2.png) [@mangesh\_shinde](https://discuss.elastic.co/u/mangesh_shinde)
#### Post date: [August 17, 2021, 11:52am UTC](https://discuss.elastic.co/t/creating-index-name-as-per-log-file-name/281677/1 "2021-08-17T11:52:04Z")

</div>

Hi, I have use beat to get log files and location specified .log files are there.  
I am sending this log through logstash to elastic search.  
in conf file what to do to have index name as file name

---

<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: [September 14, 2021, 11:52am UTC](https://discuss.elastic.co/t/creating-index-name-as-per-log-file-name/281677/2 "2021-09-14T11:52:51Z")

</div>

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