All Apps and Add-ons

Splunk HttpEventCollectorLogbackAppender is not supporting logstash encoder

raghasudha10
Engager

I added the HttpEventCollectorLogbackAppender to my log back and included logstash encoder in my API. Then I tried to start my application and I am getting the below errors
Exception in thread "main" java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.joran.spi.Interpreter@327:66 - no applicable action for [encoder], current ElementPath is [[configuration][appender][encoder]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@328:17 - no applicable action for [fieldNames], current ElementPath is [[configuration][appender][encoder][fieldNames]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@329:15 - no applicable action for [version], current ElementPath is [[configuration][appender][encoder][fieldNames][version]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@330:18 - no applicable action for [levelValue], current ElementPath is [[configuration][appender][encoder][fieldNames][levelValue]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@332:23 - no applicable action for [timestampPattern], current ElementPath is [[configuration][appender][encoder][timestampPattern]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@333:32 - no applicable action for [shortenedLoggerNameLength], current ElementPath is [[configuration][appender][encoder][shortenedLoggerNameLength]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@334:24 - no applicable action for [includeCallerData], current ElementPath is [[configuration][appender][encoder][includeCallerData]]

====================================

I added the following in my logback.

Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...