Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D0038200B44 for ; Thu, 30 Jun 2016 07:07:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CE8CB160A6E; Thu, 30 Jun 2016 05:07:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 221CA160A57 for ; Thu, 30 Jun 2016 07:07:10 +0200 (CEST) Received: (qmail 34174 invoked by uid 500); 30 Jun 2016 05:07:10 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 34165 invoked by uid 99); 30 Jun 2016 05:07:10 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2016 05:07:10 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 18CEF2C02A1 for ; Thu, 30 Jun 2016 05:07:10 +0000 (UTC) Date: Thu, 30 Jun 2016 05:07:10 +0000 (UTC) From: "Ralph Goers (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-1451) Java Log4j2 Syslog Appender MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 30 Jun 2016 05:07:12 -0000 [ https://issues.apache.org/jira/browse/LOG4J2-1451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15356527#comment-15356527 ] Ralph Goers commented on LOG4J2-1451: ------------------------------------- Gary, shouldn't we at least verify that this isn't a bug in Log4j before marking it invalid? Do we have a syslog test that uses UDP? > Java Log4j2 Syslog Appender > --------------------------- > > Key: LOG4J2-1451 > URL: https://issues.apache.org/jira/browse/LOG4J2-1451 > Project: Log4j 2 > Issue Type: Question > Components: Appenders > Affects Versions: 2.6.1 > Environment: Windows server 2012 64bit > Windows 7 64bit > Reporter: David Faizulaev > > I'm trying to use Log4j 2.6.1 in order to sent log messages via Syslog. I'm able to print them to file or console but I cannot seem to catch them in my Syslog server,or verify that they're even being sent. > I've activated Wireshark and it does not detect anything. > When I use Kiwi server to sent Syslog messages, they are sent, received and detected by Wireshark. > The Console Appender works just fine. > The Syslog server is located on the same machine. > *Here's my configuration file:* > {code:xml} > > > > > > > protocol="UDP" appName="MyApp" includeMDC="true" > facility="LOCAL0" enterpriseNumber="18060" newLine="true" > messageId="Audit" mdcId="mdc" id="App" ignoreExceptions="false"> > > > > > > > > > > > {code} > *Java Class:* > {code:java} > import org.apache.logging.log4j.Logger; > import org.apache.logging.log4j.LogManager; > import java.io.*; > import java.sql.SQLException; > import org.apache.logging.log4j.core.net.*; > public class SyslogLogger > { > private static final Logger LOG = LogManager.getLogger(SyslogLogger.class); > public static void main (String[] args)throws IOException,SQLException > { > LOG.info("message log", "log message"); > } > } > {code} > Please advise what am I doing wrong? -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org