# NoMethodError: undefined method \`include?' for #\<Bignum:0x452129a4\>

**URL:** <https://discuss.elastic.co/t/nomethoderror-undefined-method-include-for-bignum-0x452129a4/84242>\
**Category:** Logstash\
**Created:** [May 2, 2017, 10:53am UTC](https://discuss.elastic.co/t/nomethoderror-undefined-method-include-for-bignum-0x452129a4/84242 "2017-05-02T10:53:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwcn](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@jwcn](https://discuss.elastic.co/u/jwcn)\
**Post date:** [May 2, 2017, 10:53am UTC](https://discuss.elastic.co/t/nomethoderror-undefined-method-include-for-bignum-0x452129a4/84242/1 "2017-05-02T10:53:12Z")

</div>

Version: 2.4.1  
Operating System: ubuntu16.04

 ![](https://us1.discourse-cdn.com/elastic/original/3X/0/9/092f2372d8ccc4cdf18a3ece483d5841e4b362b9.jpg)  
input:  
kafka{  
zk\_connect =\> "10.19.176.68:2181"  
topic\_id =\> "lion\_request-log"  
group\_id =\> "logstash"  
codec =\> plain  
reset\_beginning =\> false  
consumer\_threads =\> 16  
decorate\_events =\> false  
add\_field =\> {  
"es\_one" =\> 1  
"json\_parse" =\> 1  
}  
}

filter:  
if [json\_parse] == "1" {  
mutate {  
lowercase =\> "message"  
}  
json {  
source =\> "message"  
target =\> "@parsed"  
}  
if "\_jsonparsefailure" in [tags] {  
mutate{  
remove\_tag =\> ["\_jsonparsefailure"]  
}  
}  
mutate {  
rename =\> {  
"@parsed[date\_time]" =\> "date\_time"  
"@parsed[level]" =\> "level"  
"@parsed[unique\_id]" =\> "unique\_id"  
"@parsed[primary]" =\> "primary"  
"@parsed[type]" =\> "type"  
"@parsed[info]" =\> "info"  
}  
add\_field =\> {  
"hostname" =\> "%{host}"  
}  
}  
}

output:  
if [es\_one] == "1" {  
elasticsearch {  
hosts =\> ["10.19.22.142:9200"]  
sniffing =\> true  
manage\_template =\> false  
flush\_size =\> 15000  
idle\_flush\_time =\> 10  
index=\> "%{[@parsed][@index]}"  
document\_type=\> "%{[@parsed][@type]}"  
}  
}

---

<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:** [May 30, 2017, 10:53am UTC](https://discuss.elastic.co/t/nomethoderror-undefined-method-include-for-bignum-0x452129a4/84242/2 "2017-05-30T10:53:36Z")

</div>

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