# Kibana/Elastic not replacing type.keyword in the dashboard

**URL:** <https://discuss.elastic.co/t/kibana-elastic-not-replacing-type-keyword-in-the-dashboard/358316>\
**Category:** Kibana\
**Created:** [April 26, 2024, 8:56pm UTC](https://discuss.elastic.co/t/kibana-elastic-not-replacing-type-keyword-in-the-dashboard/358316 "2024-04-26T20:56:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artemis](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@Artemis](https://discuss.elastic.co/u/Artemis)\
**Post date:** [April 26, 2024, 8:56pm UTC](https://discuss.elastic.co/t/kibana-elastic-not-replacing-type-keyword-in-the-dashboard/358316/1 "2024-04-26T20:56:24Z")

</div>

Hi All,  
I need some help with my Kibana dashboard. I was using v7.4 of ELK and now had to upgrade to v8.13. One of the problems I'm facing is with my Dashboards in Kibana. Using a custom .config file in logstash, i'm sending data across to elastic, however the type.keyword is not being replaced as i expect.

Here is an extract of my .conf file.

```auto
input {
 file {
   path => ["/shared/rxcmon/nbmuser1/logStatsAccess/*_Access.log"]
# start_position => "beginning"
   type => "AccessLogs"
 }
}

filter {
if [path] =~ "MS7" {
mutate { replace => { type => "MS7" } }
}
if [path] =~ "MS10" {
mutate { replace => { type => "MS10" } }
}
if [path] =~ "MS11" {
mutate { replace => { type => "MS11" } }
}
if [path] =~ "MS12" {
mutate { replace => { type => "MS12" } }
}

```

The Dashboard below should be replacing "AccessLogs" with the other names except its not.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/9/990ef6b644d24a053f5d3a29f765fd59311ce88e.png)

Please let me know what I'm missing here. TIA.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [April 26, 2024, 9:19pm UTC](https://discuss.elastic.co/t/kibana-elastic-not-replacing-type-keyword-in-the-dashboard/358316/2 "2024-04-26T21:19:54Z")

</div>

What should be the `path` value in the filter, /shared/rxcmon/nbmuser1/logStatsAccess/\*\_Access.log?  
From .conf could say neither of cases can be true, so your type is AccessLogs

If you need the path string, it will be in the [log][file][path] field.

---

<div class="post-metadata">

**Author:** ![Artemis](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@Artemis](https://discuss.elastic.co/u/Artemis)\
**Post date:** [May 2, 2024, 9:39pm UTC](https://discuss.elastic.co/t/kibana-elastic-not-replacing-type-keyword-in-the-dashboard/358316/3 "2024-05-02T21:39:11Z")

</div>

Thank you for the help. I replaced the [path] with [log][file][path] field (as below ) and it works as expected now.

```auto
input {
 file {
   path => ["/shared/rxcmon/nbmuser1/logStatsAccess/*_Access.log"]
# start_position => "beginning"
   type => "AccessLogs"
 }
}

filter {
if [log][file][path] =~ "MS7" {
mutate { replace => { type => "MS7" } }
}
if [log][file][path] =~ "MS10" {
mutate { replace => { type => "MS10" } }
}
if [log][file][path] =~ "MS11" {
mutate { replace => { type => "MS11" } }
}
if [log][file][path] =~ "MS12" {
mutate { replace => { type => "MS12" } }
}

```
