# Custom index pattern vs ILM

**URL:** <https://discuss.elastic.co/t/custom-index-pattern-vs-ilm/210979>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [December 7, 2019, 8:22pm UTC](https://discuss.elastic.co/t/custom-index-pattern-vs-ilm/210979 "2019-12-07T20:22:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefws](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefws/32/6442_2.png) [@stefws](https://discuss.elastic.co/u/stefws)\
**Post date:** [December 7, 2019, 8:22pm UTC](https://discuss.elastic.co/t/custom-index-pattern-vs-ilm/210979/1 "2019-12-07T20:22:55Z")

</div>

Attempting to make winlogbeat run on a Windows box and wonder about this issues from the log:

```
2019-12-07T13:31:20.231+0100 INFO [index-management] idxmgmt/std.go:182 Set output.elasticsearch.index to 'winlogbeat-7.5.0' as ILM is enabled.
2019-12-07T13:31:20.748+0100 INFO [monitoring] log/log.go:118 Starting metrics logging every 30s
2019-12-07T13:31:20.830+0100 WARN beater/eventlogger.go:113 EventLog[Microsoft-Windows-Sysmon/Operational] Open() error. No events will be read from this source. The specified channel could not be found. Check channel configuration.

```

Would I need to turn off ILM (setup.ilm.enabled: false) when I attempt to use a custom index, eg.:

```
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["<redacted>"]

  # Optional protocol and basic auth credentials.
  protocol: "https"
  username: "<redacted>"
  password: "<redacted>"

  # Optional index name. The default is "winlogbeat" plus date
  # and generates [winlogbeat-]YYYY.MM.DD keys.
  # In case you modify this pattern you must update setup.template.name and setup.template.pattern accordingly.
  index: "siempoc_winlogbeat-%{[agent.version]}-%{+yyyy.MM.dd}"

setup.template.enabled: false
setup.template.name: "siempoc_winlogbeat"
setup.template.pattern: "siempoc_winlogbeat-*"

```

How do I turn off/change monitoring interval?

How do I let winlogbeat get access to Windows Sysmon channel (sorry, newbie Windoze, after +20Y Uni\* 🙂

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [December 8, 2019, 4:27am UTC](https://discuss.elastic.co/t/custom-index-pattern-vs-ilm/210979/2 "2019-12-08T04:27:58Z")

</div>

[This](https://www.elastic.co/guide/en/beats/winlogbeat/master/winlogbeat-module-sysmon.html) seems to say the error means sysmon isn't installed.

The 30s item is for winlogbeat's monitoring data, not for sampling of the windows logs. To change it you would specify [metrics.period](https://www.elastic.co/guide/en/beats/winlogbeat/current/configuration-monitor.html)

---

<div class="post-metadata">

**Author:** ![stefws](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefws/32/6442_2.png) [@stefws](https://discuss.elastic.co/u/stefws)\
**Post date:** [December 8, 2019, 9:14am UTC](https://discuss.elastic.co/t/custom-index-pattern-vs-ilm/210979/3 "2019-12-08T09:14:43Z")

</div>

@rugenl thanks, right makes sense. Believe not enabling ilm will improve use a custom index

---

<div class="post-metadata">

**Author:** ![stefws](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefws/32/6442_2.png) [@stefws](https://discuss.elastic.co/u/stefws)\
**Post date:** [December 9, 2019, 8:08am UTC](https://discuss.elastic.co/t/custom-index-pattern-vs-ilm/210979/4 "2019-12-09T08:08:40Z")

</div>

> [@rugenl](#):
>
> The 30s item is for winlogbeat's monitoring data, not for sampling of the windows logs. To change it you would specify [metrics.period](https://www.elastic.co/guide/en/beats/winlogbeat/current/configuration-monitor.html)

Hmm still with:

```
monitoring.enabled: false
[monitoring.]metrics.period: 60s

```

I'm seeing this in the winlogbeat log file:

```
2019-12-09T08:52:46.309+0100	INFO	[monitoring]	log/log.go:118	Starting metrics logging every 30s

```

Seems it wouldn't turn off monitoring nor change it's frequency 😕

---

<div class="post-metadata">

**Author:** ![stefws](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefws/32/6442_2.png) [@stefws](https://discuss.elastic.co/u/stefws)\
**Post date:** [December 10, 2019, 10:39am UTC](https://discuss.elastic.co/t/custom-index-pattern-vs-ilm/210979/5 "2019-12-10T10:39:18Z")

</div>

Might monitoring be turn off while 'logging' still logs the metrics even at it's own frequency?

So to 'silence' them both I'll need both these settings:

```
logging.metrics.enabled: false
monitoring.enabled: false

```

and these control each their frequencies if enabled:

```
logging.metrics.period: 60s
metrics.period: 60s
```

---

<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:** [January 7, 2020, 10:52am UTC](https://discuss.elastic.co/t/custom-index-pattern-vs-ilm/210979/6 "2020-01-07T10:52:59Z")

</div>

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