# Define an index for weblogs being sent from Filebeat \> Logstash \> Elasticsearch

**URL:** https://discuss.elastic.co/t/define-an-index-for-weblogs-being-sent-from-filebeat-logstash-elasticsearch/168352
**Category:** Logstash
**Created:** [February 14, 2019, 7:53am UTC](https://discuss.elastic.co/t/define-an-index-for-weblogs-being-sent-from-filebeat-logstash-elasticsearch/168352 "2019-02-14T07:53:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bradfordaemorton](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@bradfordaemorton](https://discuss.elastic.co/u/bradfordaemorton)
#### Post date: [February 14, 2019, 7:53am UTC](https://discuss.elastic.co/t/define-an-index-for-weblogs-being-sent-from-filebeat-logstash-elasticsearch/168352/1 "2019-02-14T07:53:40Z")

</div>

How and where do I define an index for the weblogs being sent from Filebeat. Currently they are arriving as logstash-[thedate] which is not ideal.

---

<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 14, 2019, 1:07pm UTC](https://discuss.elastic.co/t/define-an-index-for-weblogs-being-sent-from-filebeat-logstash-elasticsearch/168352/2 "2019-02-14T13:07:45Z")

</div>

In the logstash configuration, the [default index](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-index) used by an elasticsearch output is "logstash-%{+YYYY.MM.dd}". You are free to change that.

---

<div class="post-metadata">

### Author: ![bradfordaemorton](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@bradfordaemorton](https://discuss.elastic.co/u/bradfordaemorton)
#### Post date: [February 14, 2019, 8:36pm UTC](https://discuss.elastic.co/t/define-an-index-for-weblogs-being-sent-from-filebeat-logstash-elasticsearch/168352/3 "2019-02-14T20:36:55Z")

</div>

Thanks for the help. Should I update my outputs with:

```
ilm_enabled => true
index: "weblogs"

```

Or do I need to define other things?

My outputs is:

echo “” \> first-pipeline.conf

vim first-pipeline.conf

_input {_

_beats {_

_port =\> "5044"_

_}_

_}_

_filter {_

_grok {_

_match =\> { "message" =\> "%{COMBINEDAPACHELOG}"}_

_}_

_geoip {_

_source =\> "clientip"_

_}_

_}_

_output {_

_elasticsearch {_

_hosts =\> ["localhost:9200"]_

_}_

_}_

---

<div class="post-metadata">

### Author: ![bradfordaemorton](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@bradfordaemorton](https://discuss.elastic.co/u/bradfordaemorton)
#### Post date: [February 14, 2019, 9:14pm UTC](https://discuss.elastic.co/t/define-an-index-for-weblogs-being-sent-from-filebeat-logstash-elasticsearch/168352/4 "2019-02-14T21:14:20Z")

</div>

You can disregard. I did some tweaking and it is now working with:

index =\> web\_logs

---

<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 14, 2019, 9:14pm UTC](https://discuss.elastic.co/t/define-an-index-for-weblogs-being-sent-from-filebeat-logstash-elasticsearch/168352/5 "2019-03-14T21:14:22Z")

</div>

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