# Trouble sending GELF event

**URL:** <https://discuss.elastic.co/t/trouble-sending-gelf-event/24868>\
**Category:** Logstash\
**Created:** [July 3, 2015, 1:32pm UTC](https://discuss.elastic.co/t/trouble-sending-gelf-event/24868 "2015-07-03T13:32:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mshar039](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mshar039](https://discuss.elastic.co/u/mshar039)\
**Post date:** [March 18, 2016, 11:20am UTC](https://discuss.elastic.co/t/trouble-sending-gelf-event/24868/3 "2016-03-18T11:20:58Z")

</div>

i am facing same issue, and tried to use your solution with adding the filter. but again got the error as below:

Trouble sending GELF event {:gelf\_event=\>{"short\_message"=\>["", "%{Message}"], "full\_message"=\>",%{M........"path"=\>"/root/Desktop/Graylog/test.txt", "host"=\>"localhost.localdomain", "type"=\>"grayLog"}, "severity"]}\>\>, :error=\>#SocketError: send: name or service not known\>, :level=:warn}

I have omitted the log and only shown the relevant things.  
Can u please help me with this.

My config is  
input {  
file {  
path =\> "/root/Desktop/Graylog/test.log"  
start\_position =\> "beginning"  
type =\> "grayLog"  
sincedb\_path =\> "/dev/null"  
}  
}  
filter {  
if [type] == "grayLog" {  
mutate {  
add\_field =\> {"message" =\> "%{Message}"}  
}  
}  
}  
output {  
gelf {  
host =\> ["127.0.0.1:9000"]  
}  
}

using logstash v2.2 with  
Graylog 1.3  
I am a newbie in linux environment and tools. kindly help me.

---

_[View the full topic](https://discuss.elastic.co/t/trouble-sending-gelf-event/24868)._
