# Logstash - No Cached mapping

**URL:** <https://discuss.elastic.co/t/logstash-no-cached-mapping/170060>\
**Category:** Logstash\
**Created:** [February 26, 2019, 7:15pm UTC](https://discuss.elastic.co/t/logstash-no-cached-mapping/170060 "2019-02-26T19:15:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mroell](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mroell](https://discuss.elastic.co/u/mroell)\
**Post date:** [February 26, 2019, 7:15pm UTC](https://discuss.elastic.co/t/logstash-no-cached-mapping/170060/1 "2019-02-26T19:15:09Z")

</div>

I'm using winlogbeat to ship event logs, and using a simple logstash configuration. It's not my configuration.  
[https://www.syspanda.com/index.php/2018/05/03/monitoring-active-directory-elk/](https://www.syspanda.com/index.php/2018/05/03/monitoring-active-directory-elk/)

From what I can find it's something to do with the add\_field.

Here is part of the config:

#Active Directory Logon  
filter {  
if "winlogbeat" in [tags] and [log\_name] == "Security" and [event\_id] == 4624 or [event\_id] == 4634 {  
mutate {  
remove\_field =\> ["[message]"]  
add\_field =\> { "short\_message" =\> "Logon Activity" }

Here is another part:

filter {  
if "winlogbeat" in [tags] and [log\_name] == "Security" and [event\_data][LogonType] == "2" {  
mutate {  
add\_field =\> { "Method" =\> "Interactive - Keyboard" }  
}  
}  
else if [event\_data][LogonType] == "3" {  
mutate {  
add\_field =\> { "Method" =\> "Network Logon" }  
}  
}

The message in Kibana: No cached mapping for this field. Refresh field list from the Management \> Index Patterns page.

I have, refreshed all the indexes, and even rebooted the server. Which didn't fix anything.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 26, 2019, 7:19pm UTC](https://discuss.elastic.co/t/logstash-no-cached-mapping/170060/2 "2019-02-26T19:19:03Z")

</div>

Which field is Kibana complaining about? Do you see that field in the Index Pattern you are using?

---

<div class="post-metadata">

**Author:** ![mroell](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mroell](https://discuss.elastic.co/u/mroell)\
**Post date:** [February 26, 2019, 7:36pm UTC](https://discuss.elastic.co/t/logstash-no-cached-mapping/170060/3 "2019-02-26T19:36:52Z")

</div>

![No-Cached](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1a1a4537b627e5e20d209567b983b3e3ac129d8e.png)

In the image, it's "Method" and the other fields that is having the same issue is "short\_message" and "Statusmsg"

Here is part of the config for "Statusmsg"

filter {  
if "winlogbeat" in [tags] and [log\_name] == "Security" and [event\_data][Status] == "0x0" {  
mutate {  
add\_field =\> { "Statusmsg" =\> "Success" }  
}  
}  
else if [event\_data][Status] == "0x12" {  
mutate {  
add\_field =\> { "Statusmsg" =\> "Account: disabled,expired,locked out,logon hours" }  
}  
}

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 26, 2019, 7:43pm UTC](https://discuss.elastic.co/t/logstash-no-cached-mapping/170060/4 "2019-02-26T19:43:56Z")

</div>

And you are saying that when you go to the Management -\> Index Patterns page and do a Refresh that message does not go away? If so, you should move this question to the Kibana forum.

---

<div class="post-metadata">

**Author:** ![mroell](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mroell](https://discuss.elastic.co/u/mroell)\
**Post date:** [February 26, 2019, 7:48pm UTC](https://discuss.elastic.co/t/logstash-no-cached-mapping/170060/5 "2019-02-26T19:48:26Z")

</div>

That is correct, the reason I didn't put this in the Kibana forum is because I wasn't sure if the config was correct.

---

<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:** [March 26, 2019, 7:51pm UTC](https://discuss.elastic.co/t/logstash-no-cached-mapping/170060/6 "2019-03-26T19:51:46Z")

</div>

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