These are chat archives for mp911de/logstash-gelf

5th
Sep 2018
Dan Milanese
@thedandman
Sep 05 2018 17:35

I have a question about sending additional fields with logback. My logback.xml looks something like this

    <appender name="GELF"
              class="biz.paluch.logging.gelf.logback.GelfLogbackAppender">
        <host>${DESTINATION_HOST_NAME}</host>
        <port>${DESTINATION_PORT}</port>
        <version>1.0</version>

        <additionalFields>testField=2.0</additionalFields>
        <additionalFieldTypes>testField=Double</additionalFieldTypes>

        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
            <level>INFO</level>
        </filter>
    </appender>

but the field isn't showing up at all in my logs. Is there a way to solve this at the config level, or do I have to some work at the application level?

Mark Paluch
@mp911de
Sep 05 2018 19:19
Static additional fields are configured in the appender config
Dan Milanese
@thedandman
Sep 05 2018 21:05
The appender config is supposed to be the config I shared above, right? So assuming that config is correct, I should be seeing a "testField" field containing "2.0" in my logs for this application on my graylog server?