# Parsing ASCII character 30

**URL:** <https://discuss.elastic.co/t/parsing-ascii-character-30/159207>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [December 3, 2018, 3:35pm UTC](https://discuss.elastic.co/t/parsing-ascii-character-30/159207 "2018-12-03T15:35:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tls](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@tls](https://discuss.elastic.co/u/tls)\
**Post date:** [December 3, 2018, 3:35pm UTC](https://discuss.elastic.co/t/parsing-ascii-character-30/159207/1 "2018-12-03T15:35:50Z")

</div>

I have several dockers sending their logs to ELK.

` input {`  
` udp {`  
` port => 5000`  
` type => docker`  
` }`  
` }`  
` filter {`  
` if [type] == "docker" {`  
` grok {`  
` match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }`  
` add_field => ["received_at", "%{@timestamp}"]`  
` add_field => ["received_from", "%{host}"]`  
` }`  
` date {`  
` match => ["syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]`  
` }`  
` }`  
`}`

`output {`  
` elasticsearch { hosts => ["localhost:9200"] }`  
` stdout { codec => rubydebug }`  
`'}`

When I listen the UDP packets sent by the Dockers, I can print out the following :

> 172.17.0.27 : \<30\>Dec 3 15:32:29 dev-WP\_Docker-AT-node\_1[991]: 172.22.11.1 - - [03/Dec/2018:15:32:29 +0000] "GET / HTTP/1.0" 200 27334 "-" "Wget/1.19.4 (linux-gnu)"

I would assume `<30>` is in fact the ASCII character-30... but I cannot remove it and therefore the message is not correctly parsed (it is not parsed at all).

Any hint appreciated.

\T,

---

<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:** [December 31, 2018, 3:36pm UTC](https://discuss.elastic.co/t/parsing-ascii-character-30/159207/2 "2018-12-31T15:36:11Z")

</div>

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