# Filebeat Indexes, Aliases and Errors

**URL:** https://discuss.elastic.co/t/filebeat-indexes-aliases-and-errors/285769
**Category:** Beats
**Tags:** filebeat
**Created:** [October 3, 2021, 3:18pm UTC](https://discuss.elastic.co/t/filebeat-indexes-aliases-and-errors/285769 "2021-10-03T15:18:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mhare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mhare/32/52213_2.png) [@mhare](https://discuss.elastic.co/u/mhare)
#### Post date: [October 3, 2021, 3:18pm UTC](https://discuss.elastic.co/t/filebeat-indexes-aliases-and-errors/285769/1 "2021-10-03T15:18:52Z")

</div>

I am running ElasticStack 7.13.4 with Filebeat on Windows 10

I am ingesting several types of logs with Filebeat and wanted to put each of them into their own Index.

In filebeat I created an input as

```auto
#-------------------------------
# H00
- type: log

  enabled: true

  fields:
    logext: H00
    logtype: history

  paths:
    - C:\Log_file\History\*.H00

  encoding : utf-16

#-------------------------------

```

Later I created an output

```auto
#-------------------------------
  pipelines:
    - pipeline: log_history_h00_pipeline
      when.equals:
        fields.logext: H00

  indices:
    - index: "log-history-H00-%{+yyyy.MM.dd}"
      when.equals:
        fields.logext: H00

#-------------------------------

```

Seemed to work, but eventually I get an error message

```auto
illegal_argument_exception: index.lifecycle.rollover_alias [log-history-h00] does not point to index [log-history-h00-2021.10.03]

```

Investagating, I added this

```auto
#-------------------------------
POST /_aliases
{
"actions": [
    {
"add": {
"index": "log-history-h00-2021.10.03",
"alias": "log-history-h00",
"is_write_index": true
      }
    }
  ]
}
#-------------------------------

```

Which seemed to clear the issues until later I got this

```auto
illegal_argument_exception: index name [log-history-h00-2021.10.03] does not match pattern '^.*-\d+$'

```

Somewhere I must have made a wrong turn.

Can someone please help with this?

Thank you!

Michael

---

<div class="post-metadata">

### Author: ![mhare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mhare/32/52213_2.png) [@mhare](https://discuss.elastic.co/u/mhare)
#### Post date: [October 3, 2021, 10:05pm UTC](https://discuss.elastic.co/t/filebeat-indexes-aliases-and-errors/285769/2 "2021-10-03T22:05:26Z")

</div>

I might mention this is how I am creating the index template

```auto

PUT _index_template/log-history-h00
{
  "index_patterns": ["log-history-h00*"],
  "priority": 1,
  "template": {
    "settings": {
      "number_of_shards": 1,
      "index": {
        "lifecycle": {
          "name": "my-ilm-policy",
          "rollover_alias": "log-history-h00"
        }
      }
    }
  }
}

```

---

<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: [November 1, 2021, 12:05am UTC](https://discuss.elastic.co/t/filebeat-indexes-aliases-and-errors/285769/3 "2021-11-01T00:05:41Z")

</div>

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