{"action":"created","issue":{"url":"https://api.github.com/repos/logstash/logstash-logback-encoder/issues/86","labels_url":"https://api.github.com/repos/logstash/logstash-logback-encoder/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/logstash/logstash-logback-encoder/issues/86/comments","events_url":"https://api.github.com/repos/logstash/logstash-logback-encoder/issues/86/events","html_url":"https://github.com/logstash/logstash-logback-encoder/issues/86","id":59854659,"number":86,"title":"Using TCP Appenders with markers","user":{"login":"ssabnis","id":1276281,"avatar_url":"https://avatars.githubusercontent.com/u/1276281?v=3","gravatar_id":"","url":"https://api.github.com/users/ssabnis","html_url":"https://github.com/ssabnis","followers_url":"https://api.github.com/users/ssabnis/followers","following_url":"https://api.github.com/users/ssabnis/following{/other_user}","gists_url":"https://api.github.com/users/ssabnis/gists{/gist_id}","starred_url":"https://api.github.com/users/ssabnis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssabnis/subscriptions","organizations_url":"https://api.github.com/users/ssabnis/orgs","repos_url":"https://api.github.com/users/ssabnis/repos","events_url":"https://api.github.com/users/ssabnis/events{/privacy}","received_events_url":"https://api.github.com/users/ssabnis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-04T20:13:34Z","updated_at":"2015-03-05T19:18:21Z","closed_at":null,"body":"I have a java program using the logstah encoder, I am using the FlieAppender it is working fine. I can additional fields using the Map based markers. and log lines are produced in JSON format compatible with logstash. Now I switch the logback.xml to do the TCP socket appender to send JSON log lines to SYSLOG server, I get the following error.\r\njava.lang.TypeNotPresentException: Type ch.qos.logback.access.spi.IAccessEvent not present\r\n\tat sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)\r\n\tat sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)\r\n\tat sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)\r\n\tat sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68)\r\n\tat sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138)\r\n\tat sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)\r\n\tat sun.reflect.generics.repository.ClassRepository.getSuperclass(ClassRepository.java:84)\r\n\tat java.lang.Class.getGenericSuperclass(Class.java:696)\r\n\tat com.sun.beans.TypeResolver.prepare(TypeResolver.java:308)\r\n\tat com.sun.beans.TypeResolver.resolve(TypeResolver.java:185)\r\n\tat com.sun.beans.TypeResolver.resolve(TypeResolver.java:218)\r\n\tat com.sun.beans.TypeResolver.resolve(TypeResolver.java:169)\r\n\tat com.sun.beans.TypeResolver.resolve(TypeResolver.java:218)\r\n\tat com.sun.beans.TypeResolver.resolve(TypeResolver.java:169)\r\n\tat com.sun.beans.TypeResolver.resolveInClass(TypeResolver.java:81)\r\n\tat java.beans.FeatureDescriptor.getReturnType(FeatureDescriptor.java:370)\r\n\tat java.beans.PropertyDescriptor.findPropertyType(PropertyDescriptor.java:661)\r\n\tat java.beans.PropertyDescriptor.updateGenericsFor(PropertyDescriptor.java:636)\r\n\tat java.beans.Introspector.addPropertyDescriptor(Introspector.java:595)\r\n\tat java.beans.Introspector.addPropertyDescriptors(Introspector.java:604)\r\n\tat java.beans.Introspector.getTargetPropertyInfo(Introspector.java:457)\r\n\tat java.beans.Introspector.getBeanInfo(Introspector.java:418)\r\n\tat java.beans.Introspector.getBeanInfo(Introspector.java:163)\r\n\tat ch.qos.logback.core.joran.util.PropertySetter.introspect(PropertySetter.java:79)\r\n\tat ch.qos.logback.core.joran.util.PropertySetter.getMethod(PropertySetter.java:393)\r\n\tat ch.qos.logback.core.joran.util.PropertySetter.findAdderMethod(PropertySetter.java:203)\r\n\tat ch.qos.logback.core.joran.util.PropertySetter.computeAggregationType(PropertySetter.java:177)\r\n\tat ch.qos.logback.core.joran.action.NestedComplexPropertyIA.isApplicable(NestedComplexPropertyIA.java:61)\r\n\tat ch.qos.logback.core.joran.spi.Interpreter.lookupImplicitAction(Interpreter.java:237)\r\n\tat ch.qos.logback.core.joran.spi.Interpreter.getApplicableActionList(Interpreter.java:256)\r\n\tat ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:144)\r\n\tat ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129)\r\n\tat ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)\r\n\tat ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)\r\n\tat ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)\r\n\tat ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)\r\n\tat ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:76)\r\n\tat ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:68)\r\n\tat com.arrayentinsights.connecteddevices.ArrayentStats.main(ArrayentStats.java:61)\r\nCaused by: java.lang.ClassNotFoundException: ch.qos.logback.access.spi.IAccessEvent\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:366)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:355)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:354)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:425)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:358)\r\n\tat java.lang.Class.forName0(Native Method)\r\n\tat java.lang.Class.forName(Class.java:270)\r\n\r\n\r\n\r\nMy logback.xml is like this\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<configuration>\r\n  <appender name=\"stash\" class=\"net.logstash.logback.appender.LogstashAccessTcpSocketAppender\">\r\n      <!-- remoteHost and port are optional (default values shown) -->\r\n      <remoteHost>host</remoteHost>\r\n      <port>10514</port>\r\n\r\n      <!-- encoder is required -->\r\n      <encoder class=\"net.logstash.logback.encoder.LogstashEncoder\" />\r\n  </appender>\r\n\r\n  <appender-ref ref=\"stash\" />\r\n</configuration>\r\n\r\nAny help appreciated"},"comment":{"url":"https://api.github.com/repos/logstash/logstash-logback-encoder/issues/comments/77431536","html_url":"https://github.com/logstash/logstash-logback-encoder/issues/86#issuecomment-77431536","issue_url":"https://api.github.com/repos/logstash/logstash-logback-encoder/issues/86","id":77431536,"user":{"login":"ssabnis","id":1276281,"avatar_url":"https://avatars.githubusercontent.com/u/1276281?v=3","gravatar_id":"","url":"https://api.github.com/users/ssabnis","html_url":"https://github.com/ssabnis","followers_url":"https://api.github.com/users/ssabnis/followers","following_url":"https://api.github.com/users/ssabnis/following{/other_user}","gists_url":"https://api.github.com/users/ssabnis/gists{/gist_id}","starred_url":"https://api.github.com/users/ssabnis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssabnis/subscriptions","organizations_url":"https://api.github.com/users/ssabnis/orgs","repos_url":"https://api.github.com/users/ssabnis/repos","events_url":"https://api.github.com/users/ssabnis/events{/privacy}","received_events_url":"https://api.github.com/users/ssabnis/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T19:18:21Z","updated_at":"2015-03-05T19:18:21Z","body":"Thanks for your response, here is my config file. help me out this is crucial for my project. I am trying to provide the FileAppender or Syslog depending upon the a configuration in my application. Any help appreciated!\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<configuration>\r\n\t<conversionRule conversionWord=\"syslogStart\"\r\n\t\tconverterClass=\"ch.qos.logback.classic.pattern.SyslogStartConverter\" />\r\n\t<appender name=\"stash\"\r\n\t\tclass=\"net.logstash.logback.appender.LogstashTcpSocketAppender\">\r\n\r\n\t\t<!-- remoteHost and port are optional (default values shown) -->\r\n\t\t<remoteHost>host</remoteHost>\r\n\t\t<port>10514</port>\r\n\r\n\t\t<prefix class=\"ch.qos.logback.core.encoder.LayoutWrappingEncoder\">\r\n\t\t\t<layout class=\"ch.qos.logback.classic.PatternLayout\">\r\n\t\t\t\t<pattern>%syslogStart{USER}</pattern>\r\n\t\t\t</layout>\r\n\t\t</prefix>\r\n\r\n\t\t<!-- encoder is required -->\r\n\t\t<encoder class=\"net.logstash.logback.encoder.LogstashEncoder\" />\r\n\t</appender>\r\n\r\n\t<appender-ref ref=\"stash\" />\r\n</configuration>"}}