# Change index name in winlogbeat

**URL:** <https://discuss.elastic.co/t/change-index-name-in-winlogbeat/279625>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [July 26, 2021, 12:02pm UTC](https://discuss.elastic.co/t/change-index-name-in-winlogbeat/279625 "2021-07-26T12:02:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![witkacy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/witkacy/32/86869_2.png) [@witkacy](https://discuss.elastic.co/u/witkacy)\
**Post date:** [July 26, 2021, 12:02pm UTC](https://discuss.elastic.co/t/change-index-name-in-winlogbeat/279625/1 "2021-07-26T12:02:18Z")

</div>

Hello,

How can I change default name of Elasticsearch index in winlogbeat configuration?

I tried this but with no success:

```auto
winlogbeat.event_logs:
  - name: MY-Log
    ignore_older: 1h
    processors:
      - decode_xml:
            field: message
            target_field: xml_message
            ignore_missing: true
            ignore_failure: true
      - drop_fields:
            fields: ["host", "log", "event", "winlog", "message"]      
setup.template.settings:
 
setup.kibana:
queue.mem:
  events: 4096
  flush.min_events: 500
  flush.timeout: 10s
   
output.elasticsearch:
  hosts: ["http://localhost:9200"]
  output.elasticsearch.index: "customname-%{[agent.version]}-%{+yyyy.MM.dd}"

```

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [July 26, 2021, 12:49pm UTC](https://discuss.elastic.co/t/change-index-name-in-winlogbeat/279625/2 "2021-07-26T12:49:22Z")

</div>

> [@witkacy](#):
>
> `output.elasticsearch.index:`

This should just be `index:` as it is already under the `output.elasticsearch` block.

---

<div class="post-metadata">

**Author:** ![witkacy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/witkacy/32/86869_2.png) [@witkacy](https://discuss.elastic.co/u/witkacy)\
**Post date:** [July 26, 2021, 1:17pm UTC](https://discuss.elastic.co/t/change-index-name-in-winlogbeat/279625/3 "2021-07-26T13:17:07Z")

</div>

Thanks @legoguy1000 ,

looks that now configuration is ok but in the winlogbeat log I can see:

2021-07-26T15:14:16.884+0200 INFO [index-management] idxmgmt/std.go:184 Set output.elasticsearch.index to 'winlogbeat-7.13.2' as ILM is enabled.

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [July 27, 2021, 1:03am UTC](https://discuss.elastic.co/t/change-index-name-in-winlogbeat/279625/4 "2021-07-27T01:03:06Z")

</div>

I think u need to turn ILM off or it will default to that and override the index setting. Set `setup.ilm.enabled: false`

---

<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:** [August 24, 2021, 3:03am UTC](https://discuss.elastic.co/t/change-index-name-in-winlogbeat/279625/5 "2021-08-24T03:03:37Z")

</div>

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