You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Mohit Garg <mo...@vt.edu> on 2017/04/19 02:31:11 UTC
Fwd: Chainsaw Zeroconf FileAppender Error
---------- Forwarded message ----------
From: Mohit Garg <mo...@vt.edu>
Date: Tue, Apr 18, 2017 at 10:24 PM
Subject: Chainsaw Zeroconf FileAppender Error
To: log4j-user@logging.apache.org
Hi,
I am using Apache Chainsaw on an Ubuntu 14.04 machine. In my Java
application I have the advertised my FileAppender URI as follows:
<File name="File1" filename="output.log" bufferedIO="false"
advertiseURI="file:///path/to/output.log" advertise="true">
<PatternLayout pattern="%d %p %c{1.} [%t] %m%n"/>
</File>
In Zeroconf tab of Chainsaw I can see the Appender File1. However, when i
try to connect to it I continuously get the following error.
Failed to connect to remote host <the static address of my machine>
Reconnecting in 3000 ms
---and so on
--
Thanks and Regards,
Mohit Garg
Masters|Computer Engineering
Virginia Polytechnic Institute
and State University
<+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
<https://github.com/mogarg> <http://bit.ly/mogargcv>
--
Thanks and Regards,
Mohit Garg
Masters|Computer Engineering
Virginia Polytechnic Institute
and State University
<+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
<https://github.com/mogarg> <http://bit.ly/mogargcv>
Re: Chainsaw Zeroconf FileAppender Error
Posted by Matt Sicker <bo...@gmail.com>.
I still think a Jenkins job would be a good step towards a release. ;)
On 21 April 2017 at 20:05, Ralph Goers <ra...@dslextreme.com> wrote:
> OK - but I seem to recall hearing that a few years ago.
>
> Ralph
>
> > On Apr 21, 2017, at 4:29 PM, Scott Deboy <sc...@gmail.com> wrote:
> >
> > It's just missing branding requirements and a vote.
> >
> > On 4/21/17, Ralph Goers <ra...@dslextreme.com> wrote:
> >> When are you going to release that?
> >>
> >> Ralph
> >>
> >>> On Apr 21, 2017, at 4:25 PM, Scott Deboy <sc...@gmail.com>
> wrote:
> >>>
> >>> Are you using the developer snapshot at
> >>>
> >>> http://people.apache.org/~sdeboy
> >>>
> >>> This stuff only works with this version.
> >>>
> >>> Scott
> >>>
> >>> On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
> >>>> Hey Scott,
> >>>>
> >>>> I got the following error:
> >>>>
> >>>> Could not instantiate object of class
> >>>> [org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver]
> >>>> Could not create a plugin. Reported error follows.
> >>>> In ParamAction setting parameter [appendNonMatches] to value [true]
> >>>> In ParamAction setting parameter [autoReconnect] to value [false]
> >>>> In ParamAction setting parameter [fileURL] to value
> >>>> [file://home/mohit/example.log]
> >>>> ....and so on for all other parameters
> >>>>
> >>>> On Fri, Apr 21, 2017 at 6:42 PM, Scott Deboy <sc...@gmail.com>
> >>>> wrote:
> >>>>
> >>>>> Here you go.
> >>>>>
> >>>>> Change the fileURL to apply to your setup, and the name field if
> you'd
> >>>>> like and save it as something like chainsaw-log-config.xml.
> >>>>>
> >>>>> Open Chainsaw, select File, Load chainsaw configuration menu.
> >>>>>
> >>>>> Choose the 'Use a Chainsaw config file' option, and browse to your
> >>>>> chainsaw-log-config.xml file. You can also check the 'Always start
> >>>>> Chainsaw with this configuration' checkbox if you'd like to not go
> >>>>> through this prompt again.
> >>>>>
> >>>>> You can also start Chainsaw with a specific config - just pass the
> >>>>> path to the config as an arg to Chainsaw's binary. Something like:
> >>>>>
> >>>>> JAVA_OPTS="-Xmx16384M" $HOME/bin/chainsaw
> >>>>> file:/home/scott/chainsaw-log-config.xml
> >>>>>
> >>>>> Reduce -Xmx if your machine has less memory.
> >>>>>
> >>>>> Scott
> >>>>>
> >>>>>
> >>>>>
> >>>>> Config file:
> >>>>>
> >>>>> <?xml version="1.0" encoding="UTF-8"?><log4j:configuration
> >>>>> xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
> >>>>> <plugin class="org.apache.log4j.chainsaw.vfs.
> >>>>> VFSLogFilePatternReceiver"
> >>>>> name="Example-receiver">
> >>>>> <param name="appendNonMatches" value="true"/>
> >>>>> <param name="autoReconnect" value="false"/>
> >>>>> <param name="fileURL" value="file://home/scott/example.log"/>
> >>>>> <param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER
> >>>>> - MESSAGE"/>
> >>>>> <param name="name" value="Example-receiver"/>
> >>>>> <param name="promptForUserInfo" value="false"/>
> >>>>> <param name="tailing" value="true"/>
> >>>>> <param name="timestampFormat" value="HH:mm:ss.SSS"/>
> >>>>> <param name="waitMillis" value="2000"/>
> >>>>> </plugin>
> >>>>> </log4j:configuration>
> >>>>>
> >>>>>
> >>>>>
> >>>>> On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
> >>>>>> Hey Scott,
> >>>>>>
> >>>>>> Chunk of my log file:
> >>>>>>
> >>>>>> 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
> >>>>>> send
> >>>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
> >>>>> allocated
> >>>>>> 1.05MB. This might lead to performance problems. Please set your max
> >>>>>> send
> >>>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
> >>>>>> 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
> >>>>>> send
> >>>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
> >>>>> allocated
> >>>>>> 1.05MB. This might lead to performance problems. Please set your max
> >>>>>> send
> >>>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
> >>>>>> 17:18:24.899 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
> >>>>>> send
> >>>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
> >>>>> allocated
> >>>>>> 1.05MB. This might lead to performance problems. Please set your max
> >>>>>> send
> >>>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
> >>>>>>
> >>>>>>
> >>>>>> My Log4J configuration:
> >>>>>>
> >>>>>> <?xml version="1.0" encoding="UTF-8" ?>
> >>>>>> <Configuration advertiser="multicastdns" status="INFO">
> >>>>>> <Appenders>
> >>>>>> <Console name="STDOUT" target="SYSTEM_OUT">
> >>>>>> <PatternLayout pattern="%d{ISO8602} %-5p [%t] %m%n
> >>>>>> [UTF-8]"/>
> >>>>>> </Console>
> >>>>>> <File name="File1" filename="/home/user/output.log"
> >>>>>> bufferedIO="false" advertiseURI="file:///home/user/output.log"
> >>>>>> advertise="true">
> >>>>>> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
> >>>>>> %logger{36} %m%n"/>
> >>>>>> </File>
> >>>>>> </Appenders>
> >>>>>> <Loggers>
> >>>>>> <Root level="warn">
> >>>>>> <AppenderRef ref="File1"/>
> >>>>>> </Root>
> >>>>>> <Logger name="org.jgroups" level ="warn">
> >>>>>> <AppenderRef ref="File1"/>
> >>>>>> </Logger>
> >>>>>> </Loggers>
> >>>>>> </Configuration>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On Fri, Apr 21, 2017 at 5:41 PM, Scott Deboy <scott.deboy@gmail.com
> >
> >>>>> wrote:
> >>>>>>
> >>>>>>> Send a chunk of your log file and I'll give you a config that
> works.
> >>>>>>>
> >>>>>>> Scott
> >>>>>>>
> >>>>>>> On Apr 21, 2017 2:36 PM, "Mohit Garg" <mo...@vt.edu> wrote:
> >>>>>>>
> >>>>>>>> Hey Scott,
> >>>>>>>>
> >>>>>>>> Yes, I am using Chainsaw and logging on the same machine.
> >>>>>>>>
> >>>>>>>> My OS is Ubuntu 14.04.
> >>>>>>>>
> >>>>>>>> Can you please send me a sample VFSLogFilePatternReceiver config
> or
> >>>>>>>> point
> >>>>>>>> me towards a resource.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Thanks,
> >>>>>>>> Mohit Garg
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Thanks and Regards,
> >>>>>> Mohit Garg
> >>>>>>
> >>>>>> Masters|Computer Engineering
> >>>>>> Virginia Polytechnic Institute
> >>>>>> and State University
> >>>>>>
> >>>>>> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
> >>>>>> <https://github.com/mogarg> <http://bit.ly/mogargcv>
> >>>>>>
> >>>>>
> >>>>> ------------------------------------------------------------
> ---------
> >>>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> >>>>> For additional commands, e-mail: log4j-user-help@logging.apache.org
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>> --
> >>>> Thanks and Regards,
> >>>> Mohit Garg
> >>>>
> >>>> Masters|Computer Engineering
> >>>> Virginia Polytechnic Institute
> >>>> and State University
> >>>>
> >>>> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
> >>>> <https://github.com/mogarg> <http://bit.ly/mogargcv>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> >>> For additional commands, e-mail: log4j-user-help@logging.apache.org
> >>>
> >>>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> >> For additional commands, e-mail: log4j-user-help@logging.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
Matt Sicker <bo...@gmail.com>
Re: Chainsaw Zeroconf FileAppender Error
Posted by Ralph Goers <ra...@dslextreme.com>.
OK - but I seem to recall hearing that a few years ago.
Ralph
> On Apr 21, 2017, at 4:29 PM, Scott Deboy <sc...@gmail.com> wrote:
>
> It's just missing branding requirements and a vote.
>
> On 4/21/17, Ralph Goers <ra...@dslextreme.com> wrote:
>> When are you going to release that?
>>
>> Ralph
>>
>>> On Apr 21, 2017, at 4:25 PM, Scott Deboy <sc...@gmail.com> wrote:
>>>
>>> Are you using the developer snapshot at
>>>
>>> http://people.apache.org/~sdeboy
>>>
>>> This stuff only works with this version.
>>>
>>> Scott
>>>
>>> On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
>>>> Hey Scott,
>>>>
>>>> I got the following error:
>>>>
>>>> Could not instantiate object of class
>>>> [org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver]
>>>> Could not create a plugin. Reported error follows.
>>>> In ParamAction setting parameter [appendNonMatches] to value [true]
>>>> In ParamAction setting parameter [autoReconnect] to value [false]
>>>> In ParamAction setting parameter [fileURL] to value
>>>> [file://home/mohit/example.log]
>>>> ....and so on for all other parameters
>>>>
>>>> On Fri, Apr 21, 2017 at 6:42 PM, Scott Deboy <sc...@gmail.com>
>>>> wrote:
>>>>
>>>>> Here you go.
>>>>>
>>>>> Change the fileURL to apply to your setup, and the name field if you'd
>>>>> like and save it as something like chainsaw-log-config.xml.
>>>>>
>>>>> Open Chainsaw, select File, Load chainsaw configuration menu.
>>>>>
>>>>> Choose the 'Use a Chainsaw config file' option, and browse to your
>>>>> chainsaw-log-config.xml file. You can also check the 'Always start
>>>>> Chainsaw with this configuration' checkbox if you'd like to not go
>>>>> through this prompt again.
>>>>>
>>>>> You can also start Chainsaw with a specific config - just pass the
>>>>> path to the config as an arg to Chainsaw's binary. Something like:
>>>>>
>>>>> JAVA_OPTS="-Xmx16384M" $HOME/bin/chainsaw
>>>>> file:/home/scott/chainsaw-log-config.xml
>>>>>
>>>>> Reduce -Xmx if your machine has less memory.
>>>>>
>>>>> Scott
>>>>>
>>>>>
>>>>>
>>>>> Config file:
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?><log4j:configuration
>>>>> xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
>>>>> <plugin class="org.apache.log4j.chainsaw.vfs.
>>>>> VFSLogFilePatternReceiver"
>>>>> name="Example-receiver">
>>>>> <param name="appendNonMatches" value="true"/>
>>>>> <param name="autoReconnect" value="false"/>
>>>>> <param name="fileURL" value="file://home/scott/example.log"/>
>>>>> <param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER
>>>>> - MESSAGE"/>
>>>>> <param name="name" value="Example-receiver"/>
>>>>> <param name="promptForUserInfo" value="false"/>
>>>>> <param name="tailing" value="true"/>
>>>>> <param name="timestampFormat" value="HH:mm:ss.SSS"/>
>>>>> <param name="waitMillis" value="2000"/>
>>>>> </plugin>
>>>>> </log4j:configuration>
>>>>>
>>>>>
>>>>>
>>>>> On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
>>>>>> Hey Scott,
>>>>>>
>>>>>> Chunk of my log file:
>>>>>>
>>>>>> 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>>>>>> send
>>>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
>>>>> allocated
>>>>>> 1.05MB. This might lead to performance problems. Please set your max
>>>>>> send
>>>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>>>>>> 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>>>>>> send
>>>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
>>>>> allocated
>>>>>> 1.05MB. This might lead to performance problems. Please set your max
>>>>>> send
>>>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>>>>>> 17:18:24.899 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>>>>>> send
>>>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
>>>>> allocated
>>>>>> 1.05MB. This might lead to performance problems. Please set your max
>>>>>> send
>>>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>>>>>>
>>>>>>
>>>>>> My Log4J configuration:
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>>>> <Configuration advertiser="multicastdns" status="INFO">
>>>>>> <Appenders>
>>>>>> <Console name="STDOUT" target="SYSTEM_OUT">
>>>>>> <PatternLayout pattern="%d{ISO8602} %-5p [%t] %m%n
>>>>>> [UTF-8]"/>
>>>>>> </Console>
>>>>>> <File name="File1" filename="/home/user/output.log"
>>>>>> bufferedIO="false" advertiseURI="file:///home/user/output.log"
>>>>>> advertise="true">
>>>>>> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
>>>>>> %logger{36} %m%n"/>
>>>>>> </File>
>>>>>> </Appenders>
>>>>>> <Loggers>
>>>>>> <Root level="warn">
>>>>>> <AppenderRef ref="File1"/>
>>>>>> </Root>
>>>>>> <Logger name="org.jgroups" level ="warn">
>>>>>> <AppenderRef ref="File1"/>
>>>>>> </Logger>
>>>>>> </Loggers>
>>>>>> </Configuration>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Apr 21, 2017 at 5:41 PM, Scott Deboy <sc...@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>>> Send a chunk of your log file and I'll give you a config that works.
>>>>>>>
>>>>>>> Scott
>>>>>>>
>>>>>>> On Apr 21, 2017 2:36 PM, "Mohit Garg" <mo...@vt.edu> wrote:
>>>>>>>
>>>>>>>> Hey Scott,
>>>>>>>>
>>>>>>>> Yes, I am using Chainsaw and logging on the same machine.
>>>>>>>>
>>>>>>>> My OS is Ubuntu 14.04.
>>>>>>>>
>>>>>>>> Can you please send me a sample VFSLogFilePatternReceiver config or
>>>>>>>> point
>>>>>>>> me towards a resource.
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Mohit Garg
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks and Regards,
>>>>>> Mohit Garg
>>>>>>
>>>>>> Masters|Computer Engineering
>>>>>> Virginia Polytechnic Institute
>>>>>> and State University
>>>>>>
>>>>>> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
>>>>>> <https://github.com/mogarg> <http://bit.ly/mogargcv>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>>>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thanks and Regards,
>>>> Mohit Garg
>>>>
>>>> Masters|Computer Engineering
>>>> Virginia Polytechnic Institute
>>>> and State University
>>>>
>>>> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
>>>> <https://github.com/mogarg> <http://bit.ly/mogargcv>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Chainsaw Zeroconf FileAppender Error
Posted by Scott Deboy <sc...@gmail.com>.
It's just missing branding requirements and a vote.
On 4/21/17, Ralph Goers <ra...@dslextreme.com> wrote:
> When are you going to release that?
>
> Ralph
>
>> On Apr 21, 2017, at 4:25 PM, Scott Deboy <sc...@gmail.com> wrote:
>>
>> Are you using the developer snapshot at
>>
>> http://people.apache.org/~sdeboy
>>
>> This stuff only works with this version.
>>
>> Scott
>>
>> On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
>>> Hey Scott,
>>>
>>> I got the following error:
>>>
>>> Could not instantiate object of class
>>> [org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver]
>>> Could not create a plugin. Reported error follows.
>>> In ParamAction setting parameter [appendNonMatches] to value [true]
>>> In ParamAction setting parameter [autoReconnect] to value [false]
>>> In ParamAction setting parameter [fileURL] to value
>>> [file://home/mohit/example.log]
>>> ....and so on for all other parameters
>>>
>>> On Fri, Apr 21, 2017 at 6:42 PM, Scott Deboy <sc...@gmail.com>
>>> wrote:
>>>
>>>> Here you go.
>>>>
>>>> Change the fileURL to apply to your setup, and the name field if you'd
>>>> like and save it as something like chainsaw-log-config.xml.
>>>>
>>>> Open Chainsaw, select File, Load chainsaw configuration menu.
>>>>
>>>> Choose the 'Use a Chainsaw config file' option, and browse to your
>>>> chainsaw-log-config.xml file. You can also check the 'Always start
>>>> Chainsaw with this configuration' checkbox if you'd like to not go
>>>> through this prompt again.
>>>>
>>>> You can also start Chainsaw with a specific config - just pass the
>>>> path to the config as an arg to Chainsaw's binary. Something like:
>>>>
>>>> JAVA_OPTS="-Xmx16384M" $HOME/bin/chainsaw
>>>> file:/home/scott/chainsaw-log-config.xml
>>>>
>>>> Reduce -Xmx if your machine has less memory.
>>>>
>>>> Scott
>>>>
>>>>
>>>>
>>>> Config file:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?><log4j:configuration
>>>> xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
>>>> <plugin class="org.apache.log4j.chainsaw.vfs.
>>>> VFSLogFilePatternReceiver"
>>>> name="Example-receiver">
>>>> <param name="appendNonMatches" value="true"/>
>>>> <param name="autoReconnect" value="false"/>
>>>> <param name="fileURL" value="file://home/scott/example.log"/>
>>>> <param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER
>>>> - MESSAGE"/>
>>>> <param name="name" value="Example-receiver"/>
>>>> <param name="promptForUserInfo" value="false"/>
>>>> <param name="tailing" value="true"/>
>>>> <param name="timestampFormat" value="HH:mm:ss.SSS"/>
>>>> <param name="waitMillis" value="2000"/>
>>>> </plugin>
>>>> </log4j:configuration>
>>>>
>>>>
>>>>
>>>> On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
>>>>> Hey Scott,
>>>>>
>>>>> Chunk of my log file:
>>>>>
>>>>> 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>>>>> send
>>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
>>>> allocated
>>>>> 1.05MB. This might lead to performance problems. Please set your max
>>>>> send
>>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>>>>> 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>>>>> send
>>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
>>>> allocated
>>>>> 1.05MB. This might lead to performance problems. Please set your max
>>>>> send
>>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>>>>> 17:18:24.899 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>>>>> send
>>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
>>>> allocated
>>>>> 1.05MB. This might lead to performance problems. Please set your max
>>>>> send
>>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>>>>>
>>>>>
>>>>> My Log4J configuration:
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>>> <Configuration advertiser="multicastdns" status="INFO">
>>>>> <Appenders>
>>>>> <Console name="STDOUT" target="SYSTEM_OUT">
>>>>> <PatternLayout pattern="%d{ISO8602} %-5p [%t] %m%n
>>>>> [UTF-8]"/>
>>>>> </Console>
>>>>> <File name="File1" filename="/home/user/output.log"
>>>>> bufferedIO="false" advertiseURI="file:///home/user/output.log"
>>>>> advertise="true">
>>>>> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
>>>>> %logger{36} %m%n"/>
>>>>> </File>
>>>>> </Appenders>
>>>>> <Loggers>
>>>>> <Root level="warn">
>>>>> <AppenderRef ref="File1"/>
>>>>> </Root>
>>>>> <Logger name="org.jgroups" level ="warn">
>>>>> <AppenderRef ref="File1"/>
>>>>> </Logger>
>>>>> </Loggers>
>>>>> </Configuration>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Apr 21, 2017 at 5:41 PM, Scott Deboy <sc...@gmail.com>
>>>> wrote:
>>>>>
>>>>>> Send a chunk of your log file and I'll give you a config that works.
>>>>>>
>>>>>> Scott
>>>>>>
>>>>>> On Apr 21, 2017 2:36 PM, "Mohit Garg" <mo...@vt.edu> wrote:
>>>>>>
>>>>>>> Hey Scott,
>>>>>>>
>>>>>>> Yes, I am using Chainsaw and logging on the same machine.
>>>>>>>
>>>>>>> My OS is Ubuntu 14.04.
>>>>>>>
>>>>>>> Can you please send me a sample VFSLogFilePatternReceiver config or
>>>>>>> point
>>>>>>> me towards a resource.
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Mohit Garg
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thanks and Regards,
>>>>> Mohit Garg
>>>>>
>>>>> Masters|Computer Engineering
>>>>> Virginia Polytechnic Institute
>>>>> and State University
>>>>>
>>>>> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
>>>>> <https://github.com/mogarg> <http://bit.ly/mogargcv>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>>>
>>>>
>>>
>>>
>>> --
>>> Thanks and Regards,
>>> Mohit Garg
>>>
>>> Masters|Computer Engineering
>>> Virginia Polytechnic Institute
>>> and State University
>>>
>>> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
>>> <https://github.com/mogarg> <http://bit.ly/mogargcv>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Chainsaw Zeroconf FileAppender Error
Posted by Ralph Goers <ra...@dslextreme.com>.
When are you going to release that?
Ralph
> On Apr 21, 2017, at 4:25 PM, Scott Deboy <sc...@gmail.com> wrote:
>
> Are you using the developer snapshot at
>
> http://people.apache.org/~sdeboy
>
> This stuff only works with this version.
>
> Scott
>
> On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
>> Hey Scott,
>>
>> I got the following error:
>>
>> Could not instantiate object of class
>> [org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver]
>> Could not create a plugin. Reported error follows.
>> In ParamAction setting parameter [appendNonMatches] to value [true]
>> In ParamAction setting parameter [autoReconnect] to value [false]
>> In ParamAction setting parameter [fileURL] to value
>> [file://home/mohit/example.log]
>> ....and so on for all other parameters
>>
>> On Fri, Apr 21, 2017 at 6:42 PM, Scott Deboy <sc...@gmail.com> wrote:
>>
>>> Here you go.
>>>
>>> Change the fileURL to apply to your setup, and the name field if you'd
>>> like and save it as something like chainsaw-log-config.xml.
>>>
>>> Open Chainsaw, select File, Load chainsaw configuration menu.
>>>
>>> Choose the 'Use a Chainsaw config file' option, and browse to your
>>> chainsaw-log-config.xml file. You can also check the 'Always start
>>> Chainsaw with this configuration' checkbox if you'd like to not go
>>> through this prompt again.
>>>
>>> You can also start Chainsaw with a specific config - just pass the
>>> path to the config as an arg to Chainsaw's binary. Something like:
>>>
>>> JAVA_OPTS="-Xmx16384M" $HOME/bin/chainsaw
>>> file:/home/scott/chainsaw-log-config.xml
>>>
>>> Reduce -Xmx if your machine has less memory.
>>>
>>> Scott
>>>
>>>
>>>
>>> Config file:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?><log4j:configuration
>>> xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
>>> <plugin class="org.apache.log4j.chainsaw.vfs.
>>> VFSLogFilePatternReceiver"
>>> name="Example-receiver">
>>> <param name="appendNonMatches" value="true"/>
>>> <param name="autoReconnect" value="false"/>
>>> <param name="fileURL" value="file://home/scott/example.log"/>
>>> <param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER
>>> - MESSAGE"/>
>>> <param name="name" value="Example-receiver"/>
>>> <param name="promptForUserInfo" value="false"/>
>>> <param name="tailing" value="true"/>
>>> <param name="timestampFormat" value="HH:mm:ss.SSS"/>
>>> <param name="waitMillis" value="2000"/>
>>> </plugin>
>>> </log4j:configuration>
>>>
>>>
>>>
>>> On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
>>>> Hey Scott,
>>>>
>>>> Chunk of my log file:
>>>>
>>>> 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>>>> send
>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
>>> allocated
>>>> 1.05MB. This might lead to performance problems. Please set your max
>>>> send
>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>>>> 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>>>> send
>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
>>> allocated
>>>> 1.05MB. This might lead to performance problems. Please set your max
>>>> send
>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>>>> 17:18:24.899 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>>>> send
>>>> buffer of socket MulticastSocket was set to 5MB, but the OS only
>>> allocated
>>>> 1.05MB. This might lead to performance problems. Please set your max
>>>> send
>>>> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>>>>
>>>>
>>>> My Log4J configuration:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>> <Configuration advertiser="multicastdns" status="INFO">
>>>> <Appenders>
>>>> <Console name="STDOUT" target="SYSTEM_OUT">
>>>> <PatternLayout pattern="%d{ISO8602} %-5p [%t] %m%n
>>>> [UTF-8]"/>
>>>> </Console>
>>>> <File name="File1" filename="/home/user/output.log"
>>>> bufferedIO="false" advertiseURI="file:///home/user/output.log"
>>>> advertise="true">
>>>> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
>>>> %logger{36} %m%n"/>
>>>> </File>
>>>> </Appenders>
>>>> <Loggers>
>>>> <Root level="warn">
>>>> <AppenderRef ref="File1"/>
>>>> </Root>
>>>> <Logger name="org.jgroups" level ="warn">
>>>> <AppenderRef ref="File1"/>
>>>> </Logger>
>>>> </Loggers>
>>>> </Configuration>
>>>>
>>>>
>>>>
>>>> On Fri, Apr 21, 2017 at 5:41 PM, Scott Deboy <sc...@gmail.com>
>>> wrote:
>>>>
>>>>> Send a chunk of your log file and I'll give you a config that works.
>>>>>
>>>>> Scott
>>>>>
>>>>> On Apr 21, 2017 2:36 PM, "Mohit Garg" <mo...@vt.edu> wrote:
>>>>>
>>>>>> Hey Scott,
>>>>>>
>>>>>> Yes, I am using Chainsaw and logging on the same machine.
>>>>>>
>>>>>> My OS is Ubuntu 14.04.
>>>>>>
>>>>>> Can you please send me a sample VFSLogFilePatternReceiver config or
>>>>>> point
>>>>>> me towards a resource.
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Mohit Garg
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thanks and Regards,
>>>> Mohit Garg
>>>>
>>>> Masters|Computer Engineering
>>>> Virginia Polytechnic Institute
>>>> and State University
>>>>
>>>> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
>>>> <https://github.com/mogarg> <http://bit.ly/mogargcv>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>> Mohit Garg
>>
>> Masters|Computer Engineering
>> Virginia Polytechnic Institute
>> and State University
>>
>> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
>> <https://github.com/mogarg> <http://bit.ly/mogargcv>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Chainsaw Zeroconf FileAppender Error
Posted by Scott Deboy <sc...@gmail.com>.
Are you using the developer snapshot at
http://people.apache.org/~sdeboy
This stuff only works with this version.
Scott
On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
> Hey Scott,
>
> I got the following error:
>
> Could not instantiate object of class
> [org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver]
> Could not create a plugin. Reported error follows.
> In ParamAction setting parameter [appendNonMatches] to value [true]
> In ParamAction setting parameter [autoReconnect] to value [false]
> In ParamAction setting parameter [fileURL] to value
> [file://home/mohit/example.log]
> ....and so on for all other parameters
>
> On Fri, Apr 21, 2017 at 6:42 PM, Scott Deboy <sc...@gmail.com> wrote:
>
>> Here you go.
>>
>> Change the fileURL to apply to your setup, and the name field if you'd
>> like and save it as something like chainsaw-log-config.xml.
>>
>> Open Chainsaw, select File, Load chainsaw configuration menu.
>>
>> Choose the 'Use a Chainsaw config file' option, and browse to your
>> chainsaw-log-config.xml file. You can also check the 'Always start
>> Chainsaw with this configuration' checkbox if you'd like to not go
>> through this prompt again.
>>
>> You can also start Chainsaw with a specific config - just pass the
>> path to the config as an arg to Chainsaw's binary. Something like:
>>
>> JAVA_OPTS="-Xmx16384M" $HOME/bin/chainsaw
>> file:/home/scott/chainsaw-log-config.xml
>>
>> Reduce -Xmx if your machine has less memory.
>>
>> Scott
>>
>>
>>
>> Config file:
>>
>> <?xml version="1.0" encoding="UTF-8"?><log4j:configuration
>> xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
>> <plugin class="org.apache.log4j.chainsaw.vfs.
>> VFSLogFilePatternReceiver"
>> name="Example-receiver">
>> <param name="appendNonMatches" value="true"/>
>> <param name="autoReconnect" value="false"/>
>> <param name="fileURL" value="file://home/scott/example.log"/>
>> <param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER
>> - MESSAGE"/>
>> <param name="name" value="Example-receiver"/>
>> <param name="promptForUserInfo" value="false"/>
>> <param name="tailing" value="true"/>
>> <param name="timestampFormat" value="HH:mm:ss.SSS"/>
>> <param name="waitMillis" value="2000"/>
>> </plugin>
>> </log4j:configuration>
>>
>>
>>
>> On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
>> > Hey Scott,
>> >
>> > Chunk of my log file:
>> >
>> > 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>> > send
>> > buffer of socket MulticastSocket was set to 5MB, but the OS only
>> allocated
>> > 1.05MB. This might lead to performance problems. Please set your max
>> > send
>> > buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>> > 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>> > send
>> > buffer of socket MulticastSocket was set to 5MB, but the OS only
>> allocated
>> > 1.05MB. This might lead to performance problems. Please set your max
>> > send
>> > buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>> > 17:18:24.899 [main] WARN org.jgroups.protocols.UDP JGRP000015: the
>> > send
>> > buffer of socket MulticastSocket was set to 5MB, but the OS only
>> allocated
>> > 1.05MB. This might lead to performance problems. Please set your max
>> > send
>> > buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>> >
>> >
>> > My Log4J configuration:
>> >
>> > <?xml version="1.0" encoding="UTF-8" ?>
>> > <Configuration advertiser="multicastdns" status="INFO">
>> > <Appenders>
>> > <Console name="STDOUT" target="SYSTEM_OUT">
>> > <PatternLayout pattern="%d{ISO8602} %-5p [%t] %m%n
>> > [UTF-8]"/>
>> > </Console>
>> > <File name="File1" filename="/home/user/output.log"
>> > bufferedIO="false" advertiseURI="file:///home/user/output.log"
>> > advertise="true">
>> > <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
>> > %logger{36} %m%n"/>
>> > </File>
>> > </Appenders>
>> > <Loggers>
>> > <Root level="warn">
>> > <AppenderRef ref="File1"/>
>> > </Root>
>> > <Logger name="org.jgroups" level ="warn">
>> > <AppenderRef ref="File1"/>
>> > </Logger>
>> > </Loggers>
>> > </Configuration>
>> >
>> >
>> >
>> > On Fri, Apr 21, 2017 at 5:41 PM, Scott Deboy <sc...@gmail.com>
>> wrote:
>> >
>> >> Send a chunk of your log file and I'll give you a config that works.
>> >>
>> >> Scott
>> >>
>> >> On Apr 21, 2017 2:36 PM, "Mohit Garg" <mo...@vt.edu> wrote:
>> >>
>> >> > Hey Scott,
>> >> >
>> >> > Yes, I am using Chainsaw and logging on the same machine.
>> >> >
>> >> > My OS is Ubuntu 14.04.
>> >> >
>> >> > Can you please send me a sample VFSLogFilePatternReceiver config or
>> >> > point
>> >> > me towards a resource.
>> >> >
>> >> >
>> >> > Thanks,
>> >> > Mohit Garg
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>> > --
>> > Thanks and Regards,
>> > Mohit Garg
>> >
>> > Masters|Computer Engineering
>> > Virginia Polytechnic Institute
>> > and State University
>> >
>> > <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
>> > <https://github.com/mogarg> <http://bit.ly/mogargcv>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
>
>
> --
> Thanks and Regards,
> Mohit Garg
>
> Masters|Computer Engineering
> Virginia Polytechnic Institute
> and State University
>
> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
> <https://github.com/mogarg> <http://bit.ly/mogargcv>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Chainsaw Zeroconf FileAppender Error
Posted by Mohit Garg <mo...@vt.edu>.
Hey Scott,
I got the following error:
Could not instantiate object of class
[org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver]
Could not create a plugin. Reported error follows.
In ParamAction setting parameter [appendNonMatches] to value [true]
In ParamAction setting parameter [autoReconnect] to value [false]
In ParamAction setting parameter [fileURL] to value
[file://home/mohit/example.log]
....and so on for all other parameters
On Fri, Apr 21, 2017 at 6:42 PM, Scott Deboy <sc...@gmail.com> wrote:
> Here you go.
>
> Change the fileURL to apply to your setup, and the name field if you'd
> like and save it as something like chainsaw-log-config.xml.
>
> Open Chainsaw, select File, Load chainsaw configuration menu.
>
> Choose the 'Use a Chainsaw config file' option, and browse to your
> chainsaw-log-config.xml file. You can also check the 'Always start
> Chainsaw with this configuration' checkbox if you'd like to not go
> through this prompt again.
>
> You can also start Chainsaw with a specific config - just pass the
> path to the config as an arg to Chainsaw's binary. Something like:
>
> JAVA_OPTS="-Xmx16384M" $HOME/bin/chainsaw
> file:/home/scott/chainsaw-log-config.xml
>
> Reduce -Xmx if your machine has less memory.
>
> Scott
>
>
>
> Config file:
>
> <?xml version="1.0" encoding="UTF-8"?><log4j:configuration
> xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
> <plugin class="org.apache.log4j.chainsaw.vfs.
> VFSLogFilePatternReceiver"
> name="Example-receiver">
> <param name="appendNonMatches" value="true"/>
> <param name="autoReconnect" value="false"/>
> <param name="fileURL" value="file://home/scott/example.log"/>
> <param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER
> - MESSAGE"/>
> <param name="name" value="Example-receiver"/>
> <param name="promptForUserInfo" value="false"/>
> <param name="tailing" value="true"/>
> <param name="timestampFormat" value="HH:mm:ss.SSS"/>
> <param name="waitMillis" value="2000"/>
> </plugin>
> </log4j:configuration>
>
>
>
> On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
> > Hey Scott,
> >
> > Chunk of my log file:
> >
> > 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the send
> > buffer of socket MulticastSocket was set to 5MB, but the OS only
> allocated
> > 1.05MB. This might lead to performance problems. Please set your max send
> > buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
> > 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the send
> > buffer of socket MulticastSocket was set to 5MB, but the OS only
> allocated
> > 1.05MB. This might lead to performance problems. Please set your max send
> > buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
> > 17:18:24.899 [main] WARN org.jgroups.protocols.UDP JGRP000015: the send
> > buffer of socket MulticastSocket was set to 5MB, but the OS only
> allocated
> > 1.05MB. This might lead to performance problems. Please set your max send
> > buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
> >
> >
> > My Log4J configuration:
> >
> > <?xml version="1.0" encoding="UTF-8" ?>
> > <Configuration advertiser="multicastdns" status="INFO">
> > <Appenders>
> > <Console name="STDOUT" target="SYSTEM_OUT">
> > <PatternLayout pattern="%d{ISO8602} %-5p [%t] %m%n [UTF-8]"/>
> > </Console>
> > <File name="File1" filename="/home/user/output.log"
> > bufferedIO="false" advertiseURI="file:///home/user/output.log"
> > advertise="true">
> > <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
> > %logger{36} %m%n"/>
> > </File>
> > </Appenders>
> > <Loggers>
> > <Root level="warn">
> > <AppenderRef ref="File1"/>
> > </Root>
> > <Logger name="org.jgroups" level ="warn">
> > <AppenderRef ref="File1"/>
> > </Logger>
> > </Loggers>
> > </Configuration>
> >
> >
> >
> > On Fri, Apr 21, 2017 at 5:41 PM, Scott Deboy <sc...@gmail.com>
> wrote:
> >
> >> Send a chunk of your log file and I'll give you a config that works.
> >>
> >> Scott
> >>
> >> On Apr 21, 2017 2:36 PM, "Mohit Garg" <mo...@vt.edu> wrote:
> >>
> >> > Hey Scott,
> >> >
> >> > Yes, I am using Chainsaw and logging on the same machine.
> >> >
> >> > My OS is Ubuntu 14.04.
> >> >
> >> > Can you please send me a sample VFSLogFilePatternReceiver config or
> >> > point
> >> > me towards a resource.
> >> >
> >> >
> >> > Thanks,
> >> > Mohit Garg
> >> >
> >> >
> >> >
> >>
> >
> >
> >
> > --
> > Thanks and Regards,
> > Mohit Garg
> >
> > Masters|Computer Engineering
> > Virginia Polytechnic Institute
> > and State University
> >
> > <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
> > <https://github.com/mogarg> <http://bit.ly/mogargcv>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
Thanks and Regards,
Mohit Garg
Masters|Computer Engineering
Virginia Polytechnic Institute
and State University
<+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
<https://github.com/mogarg> <http://bit.ly/mogargcv>
Re: Chainsaw Zeroconf FileAppender Error
Posted by Scott Deboy <sc...@gmail.com>.
Here you go.
Change the fileURL to apply to your setup, and the name field if you'd
like and save it as something like chainsaw-log-config.xml.
Open Chainsaw, select File, Load chainsaw configuration menu.
Choose the 'Use a Chainsaw config file' option, and browse to your
chainsaw-log-config.xml file. You can also check the 'Always start
Chainsaw with this configuration' checkbox if you'd like to not go
through this prompt again.
You can also start Chainsaw with a specific config - just pass the
path to the config as an arg to Chainsaw's binary. Something like:
JAVA_OPTS="-Xmx16384M" $HOME/bin/chainsaw
file:/home/scott/chainsaw-log-config.xml
Reduce -Xmx if your machine has less memory.
Scott
Config file:
<?xml version="1.0" encoding="UTF-8"?><log4j:configuration
xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
<plugin class="org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver"
name="Example-receiver">
<param name="appendNonMatches" value="true"/>
<param name="autoReconnect" value="false"/>
<param name="fileURL" value="file://home/scott/example.log"/>
<param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER
- MESSAGE"/>
<param name="name" value="Example-receiver"/>
<param name="promptForUserInfo" value="false"/>
<param name="tailing" value="true"/>
<param name="timestampFormat" value="HH:mm:ss.SSS"/>
<param name="waitMillis" value="2000"/>
</plugin>
</log4j:configuration>
On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
> Hey Scott,
>
> Chunk of my log file:
>
> 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the send
> buffer of socket MulticastSocket was set to 5MB, but the OS only allocated
> 1.05MB. This might lead to performance problems. Please set your max send
> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
> 17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the send
> buffer of socket MulticastSocket was set to 5MB, but the OS only allocated
> 1.05MB. This might lead to performance problems. Please set your max send
> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
> 17:18:24.899 [main] WARN org.jgroups.protocols.UDP JGRP000015: the send
> buffer of socket MulticastSocket was set to 5MB, but the OS only allocated
> 1.05MB. This might lead to performance problems. Please set your max send
> buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
>
>
> My Log4J configuration:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <Configuration advertiser="multicastdns" status="INFO">
> <Appenders>
> <Console name="STDOUT" target="SYSTEM_OUT">
> <PatternLayout pattern="%d{ISO8602} %-5p [%t] %m%n [UTF-8]"/>
> </Console>
> <File name="File1" filename="/home/user/output.log"
> bufferedIO="false" advertiseURI="file:///home/user/output.log"
> advertise="true">
> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
> %logger{36} %m%n"/>
> </File>
> </Appenders>
> <Loggers>
> <Root level="warn">
> <AppenderRef ref="File1"/>
> </Root>
> <Logger name="org.jgroups" level ="warn">
> <AppenderRef ref="File1"/>
> </Logger>
> </Loggers>
> </Configuration>
>
>
>
> On Fri, Apr 21, 2017 at 5:41 PM, Scott Deboy <sc...@gmail.com> wrote:
>
>> Send a chunk of your log file and I'll give you a config that works.
>>
>> Scott
>>
>> On Apr 21, 2017 2:36 PM, "Mohit Garg" <mo...@vt.edu> wrote:
>>
>> > Hey Scott,
>> >
>> > Yes, I am using Chainsaw and logging on the same machine.
>> >
>> > My OS is Ubuntu 14.04.
>> >
>> > Can you please send me a sample VFSLogFilePatternReceiver config or
>> > point
>> > me towards a resource.
>> >
>> >
>> > Thanks,
>> > Mohit Garg
>> >
>> >
>> >
>>
>
>
>
> --
> Thanks and Regards,
> Mohit Garg
>
> Masters|Computer Engineering
> Virginia Polytechnic Institute
> and State University
>
> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
> <https://github.com/mogarg> <http://bit.ly/mogargcv>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Chainsaw Zeroconf FileAppender Error
Posted by Mohit Garg <mo...@vt.edu>.
Hey Scott,
Chunk of my log file:
17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the send
buffer of socket MulticastSocket was set to 5MB, but the OS only allocated
1.05MB. This might lead to performance problems. Please set your max send
buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
17:18:24.897 [main] WARN org.jgroups.protocols.UDP JGRP000015: the send
buffer of socket MulticastSocket was set to 5MB, but the OS only allocated
1.05MB. This might lead to performance problems. Please set your max send
buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
17:18:24.899 [main] WARN org.jgroups.protocols.UDP JGRP000015: the send
buffer of socket MulticastSocket was set to 5MB, but the OS only allocated
1.05MB. This might lead to performance problems. Please set your max send
buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
My Log4J configuration:
<?xml version="1.0" encoding="UTF-8" ?>
<Configuration advertiser="multicastdns" status="INFO">
<Appenders>
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="%d{ISO8602} %-5p [%t] %m%n [UTF-8]"/>
</Console>
<File name="File1" filename="/home/user/output.log"
bufferedIO="false" advertiseURI="file:///home/user/output.log"
advertise="true">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
%logger{36} %m%n"/>
</File>
</Appenders>
<Loggers>
<Root level="warn">
<AppenderRef ref="File1"/>
</Root>
<Logger name="org.jgroups" level ="warn">
<AppenderRef ref="File1"/>
</Logger>
</Loggers>
</Configuration>
On Fri, Apr 21, 2017 at 5:41 PM, Scott Deboy <sc...@gmail.com> wrote:
> Send a chunk of your log file and I'll give you a config that works.
>
> Scott
>
> On Apr 21, 2017 2:36 PM, "Mohit Garg" <mo...@vt.edu> wrote:
>
> > Hey Scott,
> >
> > Yes, I am using Chainsaw and logging on the same machine.
> >
> > My OS is Ubuntu 14.04.
> >
> > Can you please send me a sample VFSLogFilePatternReceiver config or point
> > me towards a resource.
> >
> >
> > Thanks,
> > Mohit Garg
> >
> >
> >
>
--
Thanks and Regards,
Mohit Garg
Masters|Computer Engineering
Virginia Polytechnic Institute
and State University
<+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
<https://github.com/mogarg> <http://bit.ly/mogargcv>
Re: Chainsaw Zeroconf FileAppender Error
Posted by Scott Deboy <sc...@gmail.com>.
Send a chunk of your log file and I'll give you a config that works.
Scott
On Apr 21, 2017 2:36 PM, "Mohit Garg" <mo...@vt.edu> wrote:
> Hey Scott,
>
> Yes, I am using Chainsaw and logging on the same machine.
>
> My OS is Ubuntu 14.04.
>
> Can you please send me a sample VFSLogFilePatternReceiver config or point
> me towards a resource.
>
>
> Thanks,
> Mohit Garg
>
>
>
Re: Chainsaw Zeroconf FileAppender Error
Posted by Mohit Garg <mo...@vt.edu>.
Hey Scott,
Yes, I am using Chainsaw and logging on the same machine.
My OS is Ubuntu 14.04.
Can you please send me a sample VFSLogFilePatternReceiver config or point
me towards a resource.
Thanks,
Mohit Garg
Re: Chainsaw Zeroconf FileAppender Error
Posted by Scott Deboy <sc...@gmail.com>.
You're using Chainsaw and logging on the same machine?
What OS?
You could just set up a VFSLogFilePatternReceiver config - it'd tail
whatever's available.
Scott
On 4/21/17, Mohit Garg <mo...@vt.edu> wrote:
> Hey Scott,
>
> I tried with this configuration. However, it still shows the same error.
>
> Attempting connection to 10.1.1.130
> Remote host 10.1.1.130 refused connection
> waiting for 30000 millisecond before reconnecting
>
> Thanks,
> Mohit Garg
>
> On Wed, Apr 19, 2017 at 1:22 AM, Scott Deboy <sc...@gmail.com> wrote:
>
>> I used jmdns 3.4.2 with the latest log4j2 and a sample app that used
>> the following appender configuration to log to a local file. Chainsaw
>> was able to discover the advertisement and live tail the log file.
>>
>> It looks like the latest JmDNS has changed their API, so log4j2 works
>> with jmdns 3.4.1, not their latest, right now.
>>
>> Example appender config:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <Configuration advertiser="multicastdns" status="DEBUG">
>> <Appenders>
>> <Console name="Console" target="SYSTEM_OUT">
>> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
>> %logger{36} - %msg%n"/>
>> </Console>
>> <File name="File1" fileName="/Users/admin/log4j2-output.log"
>> bufferedIO="false" advertiseURI="file://Users/admin/log4j2-output.log"
>> advertise="true">
>> <PatternLayout>
>> <pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} -
>> %m%n</pattern>
>> </PatternLayout>
>> </File>
>> </Appenders>
>> <Loggers>
>> <Root level="DEBUG">
>> <AppenderRef ref="File1"/>
>> </Root>
>> </Loggers>
>> </Configuration>
>>
>> In Chainsaw's 'connect to' menu, I had a 'File1 option'. I clicked on
>> it, and a new tab opened with the contents of the file - it's
>> live-tailing the log file.
>>
>> On the appender config, advertiseURI could be an ssh endpoint, using
>> Apache Commons VFS 'sftp' support, instead of a 'file://' URI. For
>> example, if you can ssh from your env running Chainsaw to the app
>> performing the logging, you could use an advertiseURI of something
>> like:
>>
>> sftp://username:password@hostname/Users/admin/log4j2-output.log
>>
>>
>>
>> On 4/18/17, Mohit Garg <mo...@vt.edu> wrote:
>> > ---------- Forwarded message ----------
>> > From: Mohit Garg <mo...@vt.edu>
>> > Date: Tue, Apr 18, 2017 at 10:24 PM
>> > Subject: Chainsaw Zeroconf FileAppender Error
>> > To: log4j-user@logging.apache.org
>> >
>> >
>> > Hi,
>> >
>> > I am using Apache Chainsaw on an Ubuntu 14.04 machine. In my Java
>> > application I have the advertised my FileAppender URI as follows:
>> >
>> > <File name="File1" filename="output.log" bufferedIO="false"
>> > advertiseURI="file:///path/to/output.log" advertise="true">
>> > <PatternLayout pattern="%d %p %c{1.} [%t] %m%n"/>
>> > </File>
>> >
>> > In Zeroconf tab of Chainsaw I can see the Appender File1. However, when
>> > i
>> > try to connect to it I continuously get the following error.
>> >
>> > Failed to connect to remote host <the static address of my machine>
>> > Reconnecting in 3000 ms
>> >
>> > ---and so on
>> >
>> >
>> > --
>> > Thanks and Regards,
>> > Mohit Garg
>> >
>> > Masters|Computer Engineering
>> > Virginia Polytechnic Institute
>> > and State University
>> >
>> > <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
>> > <https://github.com/mogarg> <http://bit.ly/mogargcv>
>> >
>> >
>> >
>> >
>> > --
>> > Thanks and Regards,
>> > Mohit Garg
>> >
>> > Masters|Computer Engineering
>> > Virginia Polytechnic Institute
>> > and State University
>> >
>> > <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
>> > <https://github.com/mogarg> <http://bit.ly/mogargcv>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
>
>
> --
> Thanks and Regards,
> Mohit Garg
>
> Masters|Computer Engineering
> Virginia Polytechnic Institute
> and State University
>
> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
> <https://github.com/mogarg> <http://bit.ly/mogargcv>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Chainsaw Zeroconf FileAppender Error
Posted by Mohit Garg <mo...@vt.edu>.
Hey Scott,
I tried with this configuration. However, it still shows the same error.
Attempting connection to 10.1.1.130
Remote host 10.1.1.130 refused connection
waiting for 30000 millisecond before reconnecting
Thanks,
Mohit Garg
On Wed, Apr 19, 2017 at 1:22 AM, Scott Deboy <sc...@gmail.com> wrote:
> I used jmdns 3.4.2 with the latest log4j2 and a sample app that used
> the following appender configuration to log to a local file. Chainsaw
> was able to discover the advertisement and live tail the log file.
>
> It looks like the latest JmDNS has changed their API, so log4j2 works
> with jmdns 3.4.1, not their latest, right now.
>
> Example appender config:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration advertiser="multicastdns" status="DEBUG">
> <Appenders>
> <Console name="Console" target="SYSTEM_OUT">
> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
> %logger{36} - %msg%n"/>
> </Console>
> <File name="File1" fileName="/Users/admin/log4j2-output.log"
> bufferedIO="false" advertiseURI="file://Users/admin/log4j2-output.log"
> advertise="true">
> <PatternLayout>
> <pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} -
> %m%n</pattern>
> </PatternLayout>
> </File>
> </Appenders>
> <Loggers>
> <Root level="DEBUG">
> <AppenderRef ref="File1"/>
> </Root>
> </Loggers>
> </Configuration>
>
> In Chainsaw's 'connect to' menu, I had a 'File1 option'. I clicked on
> it, and a new tab opened with the contents of the file - it's
> live-tailing the log file.
>
> On the appender config, advertiseURI could be an ssh endpoint, using
> Apache Commons VFS 'sftp' support, instead of a 'file://' URI. For
> example, if you can ssh from your env running Chainsaw to the app
> performing the logging, you could use an advertiseURI of something
> like:
>
> sftp://username:password@hostname/Users/admin/log4j2-output.log
>
>
>
> On 4/18/17, Mohit Garg <mo...@vt.edu> wrote:
> > ---------- Forwarded message ----------
> > From: Mohit Garg <mo...@vt.edu>
> > Date: Tue, Apr 18, 2017 at 10:24 PM
> > Subject: Chainsaw Zeroconf FileAppender Error
> > To: log4j-user@logging.apache.org
> >
> >
> > Hi,
> >
> > I am using Apache Chainsaw on an Ubuntu 14.04 machine. In my Java
> > application I have the advertised my FileAppender URI as follows:
> >
> > <File name="File1" filename="output.log" bufferedIO="false"
> > advertiseURI="file:///path/to/output.log" advertise="true">
> > <PatternLayout pattern="%d %p %c{1.} [%t] %m%n"/>
> > </File>
> >
> > In Zeroconf tab of Chainsaw I can see the Appender File1. However, when i
> > try to connect to it I continuously get the following error.
> >
> > Failed to connect to remote host <the static address of my machine>
> > Reconnecting in 3000 ms
> >
> > ---and so on
> >
> >
> > --
> > Thanks and Regards,
> > Mohit Garg
> >
> > Masters|Computer Engineering
> > Virginia Polytechnic Institute
> > and State University
> >
> > <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
> > <https://github.com/mogarg> <http://bit.ly/mogargcv>
> >
> >
> >
> >
> > --
> > Thanks and Regards,
> > Mohit Garg
> >
> > Masters|Computer Engineering
> > Virginia Polytechnic Institute
> > and State University
> >
> > <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
> > <https://github.com/mogarg> <http://bit.ly/mogargcv>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
Thanks and Regards,
Mohit Garg
Masters|Computer Engineering
Virginia Polytechnic Institute
and State University
<+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
<https://github.com/mogarg> <http://bit.ly/mogargcv>
Re: Chainsaw Zeroconf FileAppender Error
Posted by Scott Deboy <sc...@gmail.com>.
I used jmdns 3.4.2 with the latest log4j2 and a sample app that used
the following appender configuration to log to a local file. Chainsaw
was able to discover the advertisement and live tail the log file.
It looks like the latest JmDNS has changed their API, so log4j2 works
with jmdns 3.4.1, not their latest, right now.
Example appender config:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration advertiser="multicastdns" status="DEBUG">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
%logger{36} - %msg%n"/>
</Console>
<File name="File1" fileName="/Users/admin/log4j2-output.log"
bufferedIO="false" advertiseURI="file://Users/admin/log4j2-output.log"
advertise="true">
<PatternLayout>
<pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %m%n</pattern>
</PatternLayout>
</File>
</Appenders>
<Loggers>
<Root level="DEBUG">
<AppenderRef ref="File1"/>
</Root>
</Loggers>
</Configuration>
In Chainsaw's 'connect to' menu, I had a 'File1 option'. I clicked on
it, and a new tab opened with the contents of the file - it's
live-tailing the log file.
On the appender config, advertiseURI could be an ssh endpoint, using
Apache Commons VFS 'sftp' support, instead of a 'file://' URI. For
example, if you can ssh from your env running Chainsaw to the app
performing the logging, you could use an advertiseURI of something
like:
sftp://username:password@hostname/Users/admin/log4j2-output.log
On 4/18/17, Mohit Garg <mo...@vt.edu> wrote:
> ---------- Forwarded message ----------
> From: Mohit Garg <mo...@vt.edu>
> Date: Tue, Apr 18, 2017 at 10:24 PM
> Subject: Chainsaw Zeroconf FileAppender Error
> To: log4j-user@logging.apache.org
>
>
> Hi,
>
> I am using Apache Chainsaw on an Ubuntu 14.04 machine. In my Java
> application I have the advertised my FileAppender URI as follows:
>
> <File name="File1" filename="output.log" bufferedIO="false"
> advertiseURI="file:///path/to/output.log" advertise="true">
> <PatternLayout pattern="%d %p %c{1.} [%t] %m%n"/>
> </File>
>
> In Zeroconf tab of Chainsaw I can see the Appender File1. However, when i
> try to connect to it I continuously get the following error.
>
> Failed to connect to remote host <the static address of my machine>
> Reconnecting in 3000 ms
>
> ---and so on
>
>
> --
> Thanks and Regards,
> Mohit Garg
>
> Masters|Computer Engineering
> Virginia Polytechnic Institute
> and State University
>
> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
> <https://github.com/mogarg> <http://bit.ly/mogargcv>
>
>
>
>
> --
> Thanks and Regards,
> Mohit Garg
>
> Masters|Computer Engineering
> Virginia Polytechnic Institute
> and State University
>
> <+1-540-449-3550> <https://www.linkedin.com/in/mogarg>
> <https://github.com/mogarg> <http://bit.ly/mogargcv>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org