From users-return-49706-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Wed Mar 21 05:00:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AB11818064A for ; Wed, 21 Mar 2018 05:00:02 +0100 (CET) Received: (qmail 60591 invoked by uid 500); 21 Mar 2018 04:00:01 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 60520 invoked by uid 99); 21 Mar 2018 04:00:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2018 04:00:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A6B7DC7112 for ; Wed, 21 Mar 2018 03:59:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.481 X-Spam-Level: **** X-Spam-Status: No, score=4.481 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=2, KAM_BADIPHTTP=2, KAM_SHORT=0.001, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id BeGijpFitirC for ; Wed, 21 Mar 2018 03:59:57 +0000 (UTC) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2AE3D5F173 for ; Wed, 21 Mar 2018 03:59:57 +0000 (UTC) Received: by mail-wm0-f43.google.com with SMTP id t7so7187559wmh.5 for ; Tue, 20 Mar 2018 20:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=RxNpIQ74j7UXGhUGbPtWJOAdFGXGmNidSPBzpl6PE4E=; b=mj6p2sgBtzA0Lm9kgmNF9gyTXUsuxw5eyUBBOugP4/R+N277RNhjGBm/5t6pOvAa+K byshHqf0e3eEz2IYJA6vu0gwyQZtdxO0O67rcCf7P6j6iNGuafxVel+0PJcRLtIZbljL /uTge1+8NE1p9ibCiGf9bHRPrGhCzsuN4Yf2sU0U6hLJgsDmOQuugZ1wwlueTA2XoFs3 E/KnwojWrSqXkd8XwALB4J1k2woC/IVwNNskOccMAVebBnhK595eDcbe4L5PUKThWbeu dyveALZ/bitZGyURDeUC9xcbebWnmVUzZoKFvgO+yOYppGZvCtJOSfnEwFR7Y/ZPW6de EWkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=RxNpIQ74j7UXGhUGbPtWJOAdFGXGmNidSPBzpl6PE4E=; b=KDJfXF0gmS6zsypbzbBdr33dVIAJDap9Sq8Ngm2E9k2q30Oq1SmPHQKe5j4a1zp15m eyP577K/SWFZKUhblULqj1Nyg8hCpEWidnoZOOIHf7nfq9A5zl4mcvqn3DgR12qAHXnu YnsN7bslKnC/xYP3acAGf9mZDEyRRXZ5qeIs0/guCd8nwfnoosX00+7eoa0TsbWspTkn 4K174skiN/y5sEsqc6Qnpr3mOcGr0SCYou6D+hYxZO693biFKDTlhIrdULB20AKN5iH5 1ZyqaXzxWrxpho32UmnEFoXlOpQEwhrQRhrldKGnm3pMnMUUu0xBTbJCgA9X53okf3mj ryag== X-Gm-Message-State: AElRT7E7ht2IggIlmoGRYuuVl4su9Sq9qq44h8E4DiO7CR5KxypMFVXh d+/PTMGQHN0CtvHZjHcOBgrdgVZdR2sxjPAXphXr7g== X-Google-Smtp-Source: AG47ELum4PmFihJr1oENU+2WwGYs45SMZOg6ljfDPohs24PAtyRTUFqjnDeHdhUUOXqlLWcqigJkbekpKYQiDCI+luo= X-Received: by 10.28.94.11 with SMTP id s11mr1309267wmb.159.1521604790535; Tue, 20 Mar 2018 20:59:50 -0700 (PDT) MIME-Version: 1.0 Sender: tbain98@gmail.com Received: by 10.223.135.89 with HTTP; Tue, 20 Mar 2018 20:59:30 -0700 (PDT) In-Reply-To: References: From: Tim Bain Date: Tue, 20 Mar 2018 21:59:30 -0600 X-Google-Sender-Auth: k6mz8WYdpRzuMhe1D-6Cmy7n_u4 Message-ID: Subject: Re: access.log analog ? To: ActiveMQ Users Content-Type: multipart/alternative; boundary="001a1146ed96074e4f0567e439df" --001a1146ed96074e4f0567e439df Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It looks like you have a spurious quote at the end of the element; could that be causing the broker to fail to load? When I add that mangled element into my own activemq.xml file, I get a SAXParseException on the console, but you haven't mentioned seeing that so maybe that's not it... Or maybe that's because I'm running it under Windows instead of your Linux environment. Tim On Mon, Mar 19, 2018 at 2:36 AM, =D0=98=D0=BB=D1=8C=D1=8F =D0=A8=D0=B8=D0= =BF=D0=B8=D1=86=D0=B8=D0=BD wrote: > well, I added log interceptor, activemq refuses to start (no logs at all)= . > how to debug it ? can someone have a look at my config ? > > [root@xxx activemq]# cat /opt/activemq/conf/activemq.xml > xmlns=3D"http://www.springframework.org/schema/beans" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=3D"http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://activemq.apache.org/schema/core > http://activemq.apache.org/schema/core/activemq-core.xsd"> > > class=3D"org.springframework.beans.factory.config. > PropertyPlaceholderConfigurer"> > > file:${activemq.conf}/credentials.properties > > > > > log4j.Log4jLogQuery" > lazy-init=3D"false" scope=3D"singleton" > init-method=3D"start" destroy-method=3D"stop"> > > > brokerName=3D"localhost" dataDirectory=3D"${activemq.data}"> > > > > " > > > > > > > > > > > > > > > createTablesOnStartup=3D"true" > > > lockCreateStatement=3D "SELECT * FROM ACTIVEMQ_LOCK WITH (UPDLOCK, ROWLOC= K) > WHERE ID=3D1"/> > > > > > > > > > > > > > > > > > > > > 0.0.0.0:61616?maximumConnections=3D1000&wireFormat.maxFrameSize=3D > 104857600 > "/> > > > > class=3D"org.apache.activemq.hooks.SpringContextHook" /> > > > > > ttlCeiling=3D"60000" futureOnly=3D"true"/> > > > > > destroy-method=3D"close"> > value=3D"com.microsoft.sqlserver.jdbc.SQLServerDriver"/> > value=3D"jdbc:sqlserver://xxx:1433;DatabaseName=3DActiveMQDatastore"/> > > > > > > > [root@xxx activemq]# > > > [root@xxx activemq]# bin/activemq start > INFO: Loading '/opt/activemq//bin/env' > INFO: Using java '/usr/bin/java' > INFO: Starting - inspect logfiles specified in logging.properties and > log4j.properties to get details > INFO: pidfile created : '/opt/activemq/data/activemq.pid' (pid '2274') > [root@xxx activemq]# bin/activemq status > INFO: Loading '/opt/activemq//bin/env' > INFO: Using java '/usr/bin/java' > ActiveMQ not running > [root@xxx activemq]# > > > > [root@xxx activemq]# ls data/ > activemq.pid activemq.pid.stop audit.log > [root@xxx activemq]# > > > > 2018-03-18 19:57 GMT+05:00 Tim Bain : > > > Can you elaborate on what knowledge of ActiveMQ mechanics would be > needed? > > If you have specific questions that aren't covered by the wiki page I > > provided, we can try to answer them for you. > > > > Tim > > > > On Sun, Mar 18, 2018, 12:57 AM =D0=98=D0=BB=D1=8C=D1=8F =D0=A8=D0=B8=D0= =BF=D0=B8=D1=86=D0=B8=D0=BD > wrote: > > > > > I mean, my task most probably can be resolved by log4j, it needs some > > > knowledge of activemq mechanics in order to set up log4j > > > > > > On Sun, Mar 18, 2018, 11:25 AM Tim Bain wrote= : > > > > > > > Does http://activemq.apache.org/logging-interceptor.html do what > > you're > > > > looking for? (I can't tell, since your requirement is pretty vague, > > given > > > > that the broker isn't a web server and uses long-lived connections > that > > > > span multiple operations rather than short-lived connections that a= re > > > used > > > > for only a single operation, but it seems like it might be what you > > > want.) > > > > > > > > Tim > > > > > > > > On Wed, Mar 14, 2018 at 6:42 AM, =D0=98=D0=BB=D1=8C=D1=8F =D0=A8=D0= =B8=D0=BF=D0=B8=D1=86=D0=B8=D0=BD > > > > wrote: > > > > > > > > > 5.x > > > > > > > > > > (we do not use artemis yet, but having that guide for artemis wou= ld > > be > > > > > nice) > > > > > > > > > > 2018-03-14 17:40 GMT+05:00 Tim Bain : > > > > > > > > > > > Is this for 5.x, or for Artemis? > > > > > > > > > > > > On Wed, Mar 14, 2018, 2:04 AM =D0=98=D0=BB=D1=8C=D1=8F =D0=A8= =D0=B8=D0=BF=D0=B8=D1=86=D0=B8=D0=BD > > > > > wrote: > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > is there a guide how to configure equivalent of http access > log ? > > > > > > > > > > > > > > i.e. structured log with one line per request > > > > > > > > > > > > > > thanks! > > > > > > > Ilya Shipitsin > > > > > > > > > > > > > > > > > > > > > > > > > > > > --001a1146ed96074e4f0567e439df--