# Kibana Index Pattern Configuration Problem

**URL:** https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854
**Category:** Kibana
**Tags:** kql-kibana-query-language
**Created:** [June 15, 2026, 12:00am UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854 "2026-06-15T00:00:05Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Pacous](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pacous/32/86117_2.png) [@Pacous](https://discuss.elastic.co/u/Pacous)
#### Post date: [June 15, 2026, 12:00am UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/1 "2026-06-15T00:00:05Z")

</div>

I configured Logstash as follows:

```auto
input {
file { path => "/var/log/apache2/access.log" }
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}

date {
    match => ["timestamp", "dd/MMM/yyyy:HH:mm:ss Z"]
}

mutate {
    convert => {
        "response" => "integer"
        "bytes" => "integer"
    }
}

}
output {
elasticsearch {
hosts => "localhost:9200"
index => "apache-%{+YYYY.MM.dd}"
}
}

```

I installed and configured Apache.  
When I try to configure the index in Kibana, I get the following message: The index pattern I set does not match any data stream.

I don't know where the problem lies.  
Can you please help me?

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [June 16, 2026, 9:42am UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/2 "2026-06-16T09:42:16Z")

</div>

Hi @Pacous,

Welcome back! It looks like it's expecting data stream settings. Can you change your configuration to use the data stream settings, similar to the below example:

```auto
output {
  elasticsearch {
    hosts => ["https://your-elasticsearch-host:9200"]
    data_stream => true
    data_stream_type => "logs" # or metrics, etc.
    data_stream_dataset => "app"
    data_stream_namespace => "default"
  }
}

```

Let us know if that works.

---

<div class="post-metadata">

### Author: ![Pacous](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pacous/32/86117_2.png) [@Pacous](https://discuss.elastic.co/u/Pacous)
#### Post date: [June 19, 2026, 12:41am UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/3 "2026-06-19T00:41:37Z")

</div>

> [@carly.richmond](#):
>
> Welcome back! It looks like it's expecting data stream settings. Can you change your configuration to use the data stream settings, similar to the below example:

Hi Carly,

I applied the configuration you provided.  
I still can't see the index on Kibana.

input {  
file {  
path =\> "/var/log/apache2/access.log"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}  
}

filter {  
grok {  
match =\> {  
"message" =\> "%{COMBINEDAPACHELOG}"  
}  
}

```auto
date {
    match => ["timestamp" , "dd/MMM/yyyy:HH:mm:ss Z"]
}

```

}

output {  
elasticsearch {  
hosts =\> ["[https://localhost:9200](https://localhost:9200)"]  
index =\> "apache-access-%{+YYYY.MM.dd}"  
data\_stream =\> true  
data\_stream\_type =\> "logs" # or metrics, etc.  
data\_stream\_dataset =\> "app"  
data\_stream\_namespace =\> "default"  
}  
}

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [June 19, 2026, 5:39am UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/4 "2026-06-19T05:39:08Z")

</div>

Ok, can can share the output of the latest logs? Are there Ny changes/ new errors in there?

---

<div class="post-metadata">

### Author: ![Pacous](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pacous/32/86117_2.png) [@Pacous](https://discuss.elastic.co/u/Pacous)
#### Post date: [June 19, 2026, 12:07pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/5 "2026-06-19T12:07:28Z")

</div>

Hi Carly,

When i do the following command m,

sudo /usr/share/logstash/bin/logstash --path.settings /etc/logstash -f /etc/logstash/conf.d/apache.conf -t

I have the following result,

[2026-06-19T13:47:25,624][INFO][logstash.javapipeline] Pipeline `main` is configured with `pipeline.ecs_compatibility: v8` setting. All plugins in this pipeline will default to `ecs_compatibility => v8` unless explicitly configured otherwise.  
Configuration OK  
[2026-06-19T13:47:25,837][INFO][logstash.runner] Using config.test\_and\_exit mode. Config Validation Result: OK. Exiting Logstash

When i do the following command,

sudo /usr/share/logstash/bin/logstash --debug --path.settings /etc/logstash -f /etc/logstash/conf.d/apache.conf

I have the following result,

[2026-06-19T13:58:00,883][ERROR][logstash.javapipeline][main] Pipeline error {:pipeline\_id=\>"main", :exception=\>"LogStash::ConfigurationError", :error=\>"Invalid data stream configuration: ["index"]", :stacktrace=\>"/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-elasticsearch-11.22.15-java/lib/logstash/outputs/elasticsearch/data\_stream\_support.rb:76:in `check_enabled_data_stream_config!'\n/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-elasticsearch-11.22.15-java/lib/logstash/outputs/elasticsearch/data_stream_support.rb:59:in `check\_data\_stream\_config!'\n/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-elasticsearch-11.22.15-java/lib/logstash/outputs/elasticsearch/data\_stream\_support.rb:32:in `data_stream_config?'\n/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-output-elasticsearch-11.22.15-java/lib/logstash/outputs/elasticsearch.rb:305:in `register'\norg/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:69:in `register'\n/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:243:in `block in register\_plugins'\norg/jruby/RubyArray.java:1981:in `each'\n/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:242:in `register\_plugins'\n/usr/share/logstash/logstash-core/lib/logstash/java\_pipeline.rb:610:in `maybe_setup_out_plugins'\n/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:255:in `start\_workers'\n/usr/share/logstash/logstash-core/lib/logstash/java\_pipeline.rb:196:in `run'\n/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:148:in `block in start'", "pipeline.sources"=\>["/etc/logstash/conf.d/apache.conf"], :thread=\>"#\<Thread:0x17ecf057 /usr/share/logstash/logstash-core/lib/logstash/java\_pipeline.rb:138 run\>"}  
[2026-06-19T13:58:00,895][INFO][logstash.javapipeline][main] Pipeline terminated {"pipeline.id"=\>"main"}  
[2026-06-19T13:58:01,090][ERROR][logstash.agent] Failed to execute action {:id=\>:main, :action\_type=\>LogStash::ConvergeResult::FailedAction, :message=\>"Could not execute action: PipelineAction::Create, action\_result: false", :backtrace=\>nil}  
[2026-06-19T13:58:01,102][DEBUG][logstash.agent] Shutting down all pipelines {:pipelines\_count=\>0}  
[2026-06-19T13:58:01,126][DEBUG][logstash.agent] Converging pipelines state {:actions\_count=\>0}  
[2026-06-19T13:58:01,129][DEBUG][logstash.instrument.periodicpoller.os] Stopping  
[2026-06-19T13:58:01,130][DEBUG][logstash.instrument.periodicpoller.jvm] Stopping  
[2026-06-19T13:58:01,130][DEBUG][logstash.instrument.periodicpoller.persistentqueue] Stopping  
[2026-06-19T13:58:01,134][DEBUG][logstash.instrument.periodicpoller.deadletterqueue] Stopping  
[2026-06-19T13:58:01,198][DEBUG][logstash.instrument.periodicpoller.flowrate] Stopping  
[2026-06-19T13:58:01,236][DEBUG][logstash.agent] API WebServer has stopped running  
[2026-06-19T13:58:01,241][INFO][logstash.runner] Logstash shut down.  
[2026-06-19T13:58:01,332][FATAL][org.logstash.Logstash] Logstash stopped processing because of an error: (SystemExit) exit  
org.jruby.exceptions.SystemExit: (SystemExit) exit  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:924)  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:883)  
at usr.share.logstash.lib.bootstrap.environment.(/usr/share/logstash/lib/bootstrap/environment.rb:90)

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [June 19, 2026, 12:24pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/6 "2026-06-19T12:24:51Z")

</div>

> [@Pacous](#):
>
> Pipeline error {:pipeline\_id=\>"main", :exception=\>"LogStash::ConfigurationError", :error=\>"Invalid data stream configuration: ["index"]",

Remove the `index` configuration from your output, you have set `data_stream` to `true` and all other `data_stream_*` settings, the `index` configuration cannot be used when `data_stream` is `true`.

Try changing to this:

```auto
output {
elasticsearch {
hosts => ["https://localhost:9200"]
data_stream => true
data_stream_type => "logs" # or metrics, etc.
data_stream_dataset => "app"
data_stream_namespace => "default"
}
}

```

---

<div class="post-metadata">

### Author: ![Pacous](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pacous/32/86117_2.png) [@Pacous](https://discuss.elastic.co/u/Pacous)
#### Post date: [June 19, 2026, 12:46pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/7 "2026-06-19T12:46:07Z")

</div>

> [@leandrojmp](#):
>
> Remove the `index` configuration from your output, you have set `data_stream` to `true` and all other `data_stream_*` settings, the `index` configuration cannot be used when `data_stream` is `true`.

What do I do in Kibana to view the logs?  
Since I'm using the index, I configure the same index in Kibana that I configured in Logstash.

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [June 19, 2026, 2:21pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/8 "2026-06-19T14:21:42Z")

</div>

Data streams sit on top of indexes, so you view them in the same way. If you can't see your logs in Kibana discover it's because you need to create a [data view](https://www.elastic.co/docs/explore-analyze/find-and-organize/data-views) on top.

---

<div class="post-metadata">

### Author: ![Pacous](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pacous/32/86117_2.png) [@Pacous](https://discuss.elastic.co/u/Pacous)
#### Post date: [June 19, 2026, 3:14pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/9 "2026-06-19T15:14:29Z")

</div>

> [@carly.richmond](#):
>
> Data streams sit on top of indexes, so you view them in the same way. If you can't see your logs in Kibana discover it's because you need to create a [data view](https://www.elastic.co/docs/explore-analyze/find-and-organize/data-views) on top.

I still don't see any logs, as you can see from the screenshot.

 ![a](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8c32cee97008ac0784d5cf33fc3f46581df9ad7e.png)

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [June 19, 2026, 4:21pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/10 "2026-06-19T16:21:53Z")

</div>

I think these are completely different things.

In your original question you asked this:

> [@Pacous](#):
>
> When I try to configure the index in Kibana, I get the following message: The index pattern I set does not match any data stream.

How did you try to configure it and what is the name of the index you have in Elastic? Can you see your Index when you go into Stack management \> Index management?

Please share some screenshots showing if you have any index starting with `apache-*`

---

<div class="post-metadata">

### Author: ![Pacous](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pacous/32/86117_2.png) [@Pacous](https://discuss.elastic.co/u/Pacous)
#### Post date: [June 19, 2026, 4:54pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/11 "2026-06-19T16:54:30Z")

</div>

> [@leandrojmp](#):
>
> How did you try to configure it and what is the name of the index you have in Elastic? Can you see your Index when you go into Stack management \> Index management?
> 
> Please share some screenshots showing if you have any index starting with `apache-*`

You said to remove the index entry in Logstash.

Otherwise, here's the configuration I had:

output {  
elasticsearch {  
hosts =\> ["[https://localhost:9200](https://localhost:9200/)"]  
index =\> "apache-access-%{+YYYY.MM.dd}"  
data\_stream =\> true  
data\_stream\_type =\> "logs" # or metrics, etc.  
data\_stream\_dataset =\> "app"  
data\_stream\_namespace =\> "default"  
}  
}

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [June 19, 2026, 5:08pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/12 "2026-06-19T17:08:50Z")

</div>

> [@Pacous](#):
>
> Otherwise, here's the configuration I had

This configuration will not work, you cannot have both `index` and `data_stream => true` at the same time.

If you had **only** `index => "apache-access-%{+YYYY.MM.dd}"` your log should go into an index named something like `apache-2026-06-19`

And in Kibana in need to create a Data View looking to `apache-*`.

If you use something like this:

```auto
data_stream => true
data_stream_type => "logs" # or metrics, etc.
data_stream_dataset => "app"
data_stream_namespace => "default"

```

Then your data will be on `logs-app-default` and your Data View needs to look at `logs-app-*`.

In your first question you had only the `index` configuration, with this did you had any `apache-*` index? After changing it to write into data stream did you had any `logs-app-*` index written?

You can check going into Stack Management \> Index Management and looking both in the index and data streams tab.

---

<div class="post-metadata">

### Author: ![Pacous](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pacous/32/86117_2.png) [@Pacous](https://discuss.elastic.co/u/Pacous)
#### Post date: [June 19, 2026, 6:00pm UTC](https://discuss.elastic.co/t/kibana-index-pattern-configuration-problem/386854/13 "2026-06-19T18:00:59Z")

</div>

Here is the result shown in the screenshot when I try to configure the index on Kibana:

 ![b](https://us1.discourse-cdn.com/elastic/original/3X/6/c/6ce0b2f29fe16e392dd57cdb3b440a4aeb7cac31.png)
