# Uninitialized constant logstash::Filters::Ruby::JSON Did you mean? LogStash::Filters::Json

**URL:** https://discuss.elastic.co/t/uninitialized-constant-logstash-json-did-you-mean-logstash-json/195685
**Category:** Logstash
**Created:** [August 19, 2019, 7:15am UTC](https://discuss.elastic.co/t/uninitialized-constant-logstash-json-did-you-mean-logstash-json/195685 "2019-08-19T07:15:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Alex-Victor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex-victor/32/46081_2.png) [@Alex-Victor](https://discuss.elastic.co/u/Alex-Victor)
#### Post date: [August 19, 2019, 7:15am UTC](https://discuss.elastic.co/t/uninitialized-constant-logstash-json-did-you-mean-logstash-json/195685/1 "2019-08-19T07:15:47Z")

</div>

as the topic, I was traped with this problem, I have tried serveral methods,but it still does not work at all. anybody ever met that like me ? below is my settings  
if [tags][0] == "ad\_api-logs" {  
mutate {  
add\_field =\> { "[@metadata][logType]" =\> "nginx" }  
}  
json {  
source =\> "message"  
target =\> "jsonContent"  
}  
then use message & jsonContent. how can I solve this?

---

<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: [September 16, 2019, 7:28am UTC](https://discuss.elastic.co/t/uninitialized-constant-logstash-json-did-you-mean-logstash-json/195685/2 "2019-09-16T07:28:02Z")

</div>

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