These are chat archives for mp911de/logstash-gelf

Jul 2016
@marinhodev Bruno Marinho
Jul 22 2016 19:18
hello guys
I'm using
<appender name="gelf" class="biz.paluch.logging.gelf.logback.GelfLogbackAppender">
<timestampPattern>yyyy-MM-dd HH:mm:ss,SSSS</timestampPattern>
my server are in amazon and almost all is ok
but for example when type
"hostname" at server i get ""
but in kibana logs i get
"_index": "photongroup-2016.07.22",
"_type": "logs",
"_id": "AVYUDhpYuR5avmFjg1By",
"_score": null,
"_source": {
"level": 6,
"host": "ip-10-0-1-251.ec2.internal",
"facility": "offers-page",
"@version": "1",
"@timestamp": "2016-07-22T19:21:22.628Z",
"source_host": "",
"message": "Notifying Hubspot",
"Severity": "INFO",
"unique": "24plr1msts2b1el7qzszmahgk",
"LoggerName": "",
"Time": "2016-07-22 19:21:22,0628",
"SourceSimpleClassName": "ProgressiveController",
"SourceMethodName": "notifyHubSpot",
"SourceLineNumber": 826,
"SourceClassName": "",
"Thread": "qtp368802354-141"
"fields": {
"@timestamp": [
"sort": [
look at "host": "ip-10-0-1-251.ec2.internal",
the host is not the same return of hostname command on server someone can help me?
Mark Paluch
Jul 22 2016 19:47
@bdmstyle Have you looked into
That document describes the way how it performs the lookup
You can adjust the lookup with System properties and Env-properties
I think you should be able to achieve what you want by setting logstash-gelf.resolutionOrder=localhost,network
@marinhodev Bruno Marinho
Jul 22 2016 21:27
thanks i will try but i need change "logstash-gelf.resolutionOrder=localhost,network" in logbackfile?
@marinhodev Bruno Marinho
Jul 22 2016 21:34
or to change system properties and env-properties?
Renan Altendorf
Jul 22 2016 21:48
@bdmstyle You can bypass that process by setting some SystemProperties. Set logstash-gelf.skipHostnameResolution to true ;)