You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Hari Kannan <ha...@citrix.com> on 2012/12/26 20:12:19 UTC

[PROPOSAL]Syslog enhancements

Hello All,



I wish to propose syslog enhancements in CloudStack - I have added some details here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+enhancements> along with a JIRA ticket 772





Please review and comment







Hari Kannan

RE: [PROPOSAL]Syslog enhancements

Posted by Animesh Chaturvedi <an...@citrix.com>.
Correction the JIRA ticket number is 712 not 772

Animesh

> -----Original Message-----
> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> Sent: Thursday, December 27, 2012 12:45 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: RE: [PROPOSAL]Syslog enhancements
> 
> Hari,
> 
> Please use the tag [DISCUSS] and send requirements to both -users and -dev
> for discussion.  See here for more info.
> 
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Mailing+List+Guid
> elines
> 
> --Alex
> 
> > -----Original Message-----
> > From: Hari Kannan [mailto:hari.kannan@citrix.com]
> > Sent: Wednesday, December 26, 2012 11:12 AM
> > To: cloudstack-dev@incubator.apache.org
> > Subject: [PROPOSAL]Syslog enhancements
> >
> > Hello All,
> >
> >
> >
> > I wish to propose syslog enhancements in CloudStack - I have added
> > some details
> > here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
> > hancements> along with a JIRA ticket 772
> >
> >
> >
> >
> >
> > Please review and comment
> >
> >
> >
> >
> >
> >
> >
> > Hari Kannan

RE: [PROPOSAL]Syslog enhancements

Posted by Alex Huang <Al...@citrix.com>.
Hari,

Please use the tag [DISCUSS] and send requirements to both -users and -dev for discussion.  See here for more info.

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Mailing+List+Guidelines

--Alex

> -----Original Message-----
> From: Hari Kannan [mailto:hari.kannan@citrix.com]
> Sent: Wednesday, December 26, 2012 11:12 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: [PROPOSAL]Syslog enhancements
> 
> Hello All,
> 
> 
> 
> I wish to propose syslog enhancements in CloudStack - I have added some
> details
> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
> hancements> along with a JIRA ticket 772
> 
> 
> 
> 
> 
> Please review and comment
> 
> 
> 
> 
> 
> 
> 
> Hari Kannan

RE: [DISCUSS] Syslog enhancements

Posted by Alex Huang <Al...@citrix.com>.
I think the problem is Ram is not on the roles.

Ram,

I added you.  Try again.
--Alex

> -----Original Message-----
> From: Ram Ganesh [mailto:Ram.Ganesh@citrix.com]
> Sent: Wednesday, January 02, 2013 10:11 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: RE: [DISCUSS] Syslog enhancements
> 
> > -----Original Message-----
> > From: Chip Childers [mailto:chip.childers@sungard.com]
> > Sent: 02 January 2013 23:33
> > To: cloudstack-dev@incubator.apache.org
> > Subject: Re: [DISCUSS] Syslog enhancements
> >
> > On Wed, Jan 2, 2013 at 12:58 PM, Ram Ganesh <Ra...@citrix.com>
> > wrote:
> > >> -----Original Message-----
> > >> From: Chip Childers [mailto:chip.childers@sungard.com]
> > >> Sent: 02 January 2013 21:32
> > >> To: cloudstack-dev@incubator.apache.org
> > >> Subject: Re: [DISCUSS] Syslog enhancements
> > >>
> > >> On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com>
> > >> wrote:
> > >> > Hello All,
> > >> >
> > >> >
> > >> >
> > >> > I wish to propose syslog enhancements in CloudStack - I have added
> > >> some details
> > >>
> >
> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
> ha
> > >> ncements> along with a JIRA ticket 772
> > >> >
> > >>
> > >> The correct Jira ID is CLOUDSTACK-712.
> > >>
> > >> Are you hoping for this to be in 4.1.0?  I noticed that the feature
> > >> details are in the wiki under the 4.1 release, however the Jira
> > record
> > >> does not have a fix-version set to 4.1.0.  Also, is anyone currently
> > >> working on this?
> > >
> > > Anshul who is driving SNMP related effort could work on this. I am
> > unable to re-assign it to him.
> > >
> > > Thanks,
> > > Ram
> > >
> >
> > What's his Jira ID?  I can add him as a contributor, which would allow
> > the assignment.
> 
> Chip,
> 
> I am assuming you are asking for Anshul's user handle which is anshulg.


Re: [DISCUSS] Syslog enhancements

Posted by Chip Childers <ch...@sungard.com>.
On Wed, Jan 2, 2013 at 1:10 PM, Ram Ganesh <Ra...@citrix.com> wrote:
>> -----Original Message-----
>> From: Chip Childers [mailto:chip.childers@sungard.com]
>> Sent: 02 January 2013 23:33
>> To: cloudstack-dev@incubator.apache.org
>> Subject: Re: [DISCUSS] Syslog enhancements
>>
>> On Wed, Jan 2, 2013 at 12:58 PM, Ram Ganesh <Ra...@citrix.com>
>> wrote:
>> >> -----Original Message-----
>> >> From: Chip Childers [mailto:chip.childers@sungard.com]
>> >> Sent: 02 January 2013 21:32
>> >> To: cloudstack-dev@incubator.apache.org
>> >> Subject: Re: [DISCUSS] Syslog enhancements
>> >>
>> >> On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com>
>> >> wrote:
>> >> > Hello All,
>> >> >
>> >> >
>> >> >
>> >> > I wish to propose syslog enhancements in CloudStack - I have added
>> >> some details
>> >>
>> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+enha
>> >> ncements> along with a JIRA ticket 772
>> >> >
>> >>
>> >> The correct Jira ID is CLOUDSTACK-712.
>> >>
>> >> Are you hoping for this to be in 4.1.0?  I noticed that the feature
>> >> details are in the wiki under the 4.1 release, however the Jira
>> record
>> >> does not have a fix-version set to 4.1.0.  Also, is anyone currently
>> >> working on this?
>> >
>> > Anshul who is driving SNMP related effort could work on this. I am
>> unable to re-assign it to him.
>> >
>> > Thanks,
>> > Ram
>> >
>>
>> What's his Jira ID?  I can add him as a contributor, which would allow
>> the assignment.
>
> Chip,
>
> I am assuming you are asking for Anshul's user handle which is anshulg.

There's no user (that I could find) with that user ID on issues.a.o.

Anshul, can you create an account and let me know the ID please?

-chip

RE: [DISCUSS] Syslog enhancements

Posted by Ram Ganesh <Ra...@citrix.com>.
> -----Original Message-----
> From: Chip Childers [mailto:chip.childers@sungard.com]
> Sent: 02 January 2013 23:33
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: [DISCUSS] Syslog enhancements
> 
> On Wed, Jan 2, 2013 at 12:58 PM, Ram Ganesh <Ra...@citrix.com>
> wrote:
> >> -----Original Message-----
> >> From: Chip Childers [mailto:chip.childers@sungard.com]
> >> Sent: 02 January 2013 21:32
> >> To: cloudstack-dev@incubator.apache.org
> >> Subject: Re: [DISCUSS] Syslog enhancements
> >>
> >> On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com>
> >> wrote:
> >> > Hello All,
> >> >
> >> >
> >> >
> >> > I wish to propose syslog enhancements in CloudStack - I have added
> >> some details
> >>
> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+enha
> >> ncements> along with a JIRA ticket 772
> >> >
> >>
> >> The correct Jira ID is CLOUDSTACK-712.
> >>
> >> Are you hoping for this to be in 4.1.0?  I noticed that the feature
> >> details are in the wiki under the 4.1 release, however the Jira
> record
> >> does not have a fix-version set to 4.1.0.  Also, is anyone currently
> >> working on this?
> >
> > Anshul who is driving SNMP related effort could work on this. I am
> unable to re-assign it to him.
> >
> > Thanks,
> > Ram
> >
> 
> What's his Jira ID?  I can add him as a contributor, which would allow
> the assignment.

Chip,

I am assuming you are asking for Anshul's user handle which is anshulg. 


Re: [DISCUSS] Syslog enhancements

Posted by Chip Childers <ch...@sungard.com>.
On Wed, Jan 2, 2013 at 12:58 PM, Ram Ganesh <Ra...@citrix.com> wrote:
>> -----Original Message-----
>> From: Chip Childers [mailto:chip.childers@sungard.com]
>> Sent: 02 January 2013 21:32
>> To: cloudstack-dev@incubator.apache.org
>> Subject: Re: [DISCUSS] Syslog enhancements
>>
>> On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com>
>> wrote:
>> > Hello All,
>> >
>> >
>> >
>> > I wish to propose syslog enhancements in CloudStack - I have added
>> some details
>> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+enha
>> ncements> along with a JIRA ticket 772
>> >
>>
>> The correct Jira ID is CLOUDSTACK-712.
>>
>> Are you hoping for this to be in 4.1.0?  I noticed that the feature
>> details are in the wiki under the 4.1 release, however the Jira record
>> does not have a fix-version set to 4.1.0.  Also, is anyone currently
>> working on this?
>
> Anshul who is driving SNMP related effort could work on this. I am unable to re-assign it to him.
>
> Thanks,
> Ram
>

What's his Jira ID?  I can add him as a contributor, which would allow
the assignment.

RE: [DISCUSS] Syslog enhancements

Posted by Ram Ganesh <Ra...@citrix.com>.
> -----Original Message-----
> From: Chip Childers [mailto:chip.childers@sungard.com]
> Sent: 02 January 2013 21:32
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: [DISCUSS] Syslog enhancements
> 
> On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com>
> wrote:
> > Hello All,
> >
> >
> >
> > I wish to propose syslog enhancements in CloudStack - I have added
> some details
> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+enha
> ncements> along with a JIRA ticket 772
> >
> 
> The correct Jira ID is CLOUDSTACK-712.
> 
> Are you hoping for this to be in 4.1.0?  I noticed that the feature
> details are in the wiki under the 4.1 release, however the Jira record
> does not have a fix-version set to 4.1.0.  Also, is anyone currently
> working on this?

Anshul who is driving SNMP related effort could work on this. I am unable to re-assign it to him.

Thanks,
Ram

Re: [DISCUSS] Syslog enhancements

Posted by Chip Childers <ch...@sungard.com>.
On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com> wrote:
> Hello All,
>
>
>
> I wish to propose syslog enhancements in CloudStack - I have added some details here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+enhancements> along with a JIRA ticket 772
>

The correct Jira ID is CLOUDSTACK-712.

Are you hoping for this to be in 4.1.0?  I noticed that the feature
details are in the wiki under the 4.1 release, however the Jira record
does not have a fix-version set to 4.1.0.  Also, is anyone currently
working on this?

Re: [DISCUSS] Syslog enhancements

Posted by John Kinsella <jl...@stratosec.co>.
So I've been thinking about that a little as well, from the POV of having a messaging/alerting framework. What sounds ideal to me is a single API for logging/messaging/whatever, which leverages messaging plugins and a rule file/UI to specify what types of messages go where.  I don't want security alerts going to "generic" sysadmins. The plugins, then, define anything past log4j capabilities - SMS, SNMP, Prowl, what have you. (remedy? hehe) 

A proper rules setup could allow escalation, notification windows…I suspect if there were hooks on the rules side more interesting things could come up...

An argument could be made that an organization's existing monitoring/alerting system should handle this. Could probably counter it with the more info you supply to that monitoring system, the better.

I don't want to hijack what Ram's up to if I'm going too far off on a tangent, here… :)

John

On Jan 3, 2013, at 10:42 AM, Chip Childers <ch...@sungard.com> wrote:

> I think that Ram and Hari are talking about CloudStack system "events"
> (call this set 1). The log4j conversation is around log messages being
> sent through the logger (call this set 2).
> 
> If we assume that (2) is a superset of (1), then IMO there is no
> reason to do something different from the log4j syslog appender.  On
> the other hand, if there is a portion of set (1) that is not included
> in set (2), then I actually think we have a logging problem to fix.
> 
> On Thu, Jan 3, 2013 at 1:36 PM, John Kinsella <jl...@stratosec.co> wrote:
>> Ram - my coffee's still kicking in, but that's still not clear to me.  Maybe you could put some sample logs in the wiki? Based off what you have there right now (IP, time stamp, message type, log level, log message) this comes already from the log4j appender.  Sample output that I just set up by setting the syslog appender level to DEBUG and setting up my syslog daemon on the master to accept network traffic ("-r" flag in /etc/sysconfig/syslog on centos)
>> 
>> Jan  3 12:33:46 localhost.localdomain DEBUG [cloud.alert.ClusterAlertAdapter] (Cluster-Notification-1:) Receive cluster alert, EventArgs: com.cloud.cluster.ClusterNodeJoinEventArgs
>> 
>> Whether localhost.localdomain is an IP or resolved hostname is based on syslogd/syslog-ng settings. Happy to write up a wiki on this (probably should anyways) but still trying to figure out if your plan is to provide more than this...
>> 
>> John
>> 
>> On Jan 3, 2013, at 8:53 AM, Ram Ganesh <Ra...@citrix.com> wrote:
>> 
>>> Alex,
>>> 
>>> With this requirement CloudStack will send out events in syslog format. Apart from sending them in SNMP format(if configured accordingly) and also in email format. Hope it is clear
>>> 
>>> Thanks,
>>> Ram
>>> 
>>>> -----Original Message-----
>>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>>>> Sent: 03 January 2013 00:14
>>>> To: cloudstack-dev@incubator.apache.org
>>>> Cc: Hari Kannan
>>>> Subject: RE: [DISCUSS] Syslog enhancements
>>>> 
>>>> Here's some references for people who don't know log4j and syslog well.
>>>> 
>>>> http://loggly.com/support/sending-data/logging-from/application-
>>>> logs/java/
>>>> 
>>>> Maybe all we need is someone to add this information to our wiki or
>>>> maybe this is only a docs improvement?
>>>> 
>>>> --Alex
>>>> 
>>>>> -----Original Message-----
>>>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>>>>> Sent: Wednesday, January 02, 2013 10:39 AM
>>>>> To: cloudstack-dev@incubator.apache.org
>>>>> Cc: Hari Kannan
>>>>> Subject: RE: [DISCUSS] Syslog enhancements
>>>>> 
>>>>> Hari,
>>>>> 
>>>>> I echo John's question here.  I don't see any requirements on the
>>>> wiki that
>>>>> require more than a syslog appender for log4j.  What this means is
>>>> that
>>>>> whatever is logged to our current log file will get sent to syslog.
>>>> That's
>>>>> something someone can configure today on existing releases.  Do you
>>>> have
>>>>> more use cases?  For example, is there anything that should be logged
>>>> to
>>>>> syslogs but not in our logs or vice versa?
>>>>> 
>>>>> --Alex
>>>>> 
>>>>>> -----Original Message-----
>>>>>> From: John Kinsella [mailto:jlk@stratosec.co]
>>>>>> Sent: Wednesday, December 26, 2012 1:53 PM
>>>>>> To: cloudstack-dev@incubator.apache.org
>>>>>> Subject: Re: [DISCUSS] Syslog enhancements
>>>>>> 
>>>>>> (Changed subject as noted by Alex)
>>>>>> 
>>>>>> Question - is this feature something beyond using the syslog
>>>> appender in
>>>>>> log4j?
>>>>>> 
>>>>>> One thing I'd like to see is logs using key-vaue pairs. The closer
>>>> to that we
>>>>> can
>>>>>> get, the easier it is for me to have the logs consumed by a
>>>> separate
>>>>> analytics
>>>>>> package.
>>>>>> 
>>>>>> One nitpick - syslog can be udp or tcp.
>>>>>> 
>>>>>> On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com>
>>>> wrote:
>>>>>> 
>>>>>>> Hello All,
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> I wish to propose syslog enhancements in CloudStack - I have
>>>> added
>>>>> some
>>>>>> details
>>>>>> 
>>>>> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
>>>>>> hancements> along with a JIRA ticket 772
>>>>>>> 
>>>>>> 
>>> 
>>> 
>> 
>> Stratosec - Secure Infrastructure as a Service
>> o: 415.315.9385
>> @johnlkinsella
>> 
> 

Stratosec - Secure Infrastructure as a Service
o: 415.315.9385
@johnlkinsella


Re: [DISCUSS] Syslog enhancements

Posted by Anshul Gangwar <an...@citrix.com>.
Hi Alex,
I will do the same as suggested by you by changing the logger for alerts.

Thanks,
Anshul
On 11/03/13 10:21, Anshul Gangwar wrote:
> Because of the class, from which I am getting alerts is present in
> com.cloud.alert package.
>
> Thanks,
> Anshul
> On 08/03/13 18:19, Alex Huang wrote:
>> Why not org.apache.cloudstack.alert?  It is an apache project.
>>
>> --Alex
>>
>>> -----Original Message-----
>>> From: Anshul Gangwar
>>> Sent: Thursday, March 7, 2013 9:58 PM
>>> To: Alex Huang
>>> Cc: cloudstack-dev@incubator.apache.org
>>> Subject: Re: [DISCUSS] Syslog enhancements
>>>
>>> Hi Alex,
>>>
>>> I will change it to package level then i.e. *com.cloud.alert *instead of
>>> *com.cloud.alert.AlertManagerImpl*.
>>>
>>> Thanks,
>>> Anshul
>>> On 08/03/13 06:24, Alex Huang wrote:
>>>> Anshul,
>>>>
>>>> Like the FS.  The only thing I have is it's probably better to have us actually
>>> change the log category to something like org.apache.cloudstack.alerts.  It
>>> takes a little code change but would make much more sense that
>>> AlertManagerImpl.
>>>> --Alex
>>>>
>>>>> -----Original Message-----
>>>>> From: Anshul Gangwar [mailto:anshul.gangwar@citrix.com]
>>>>> Sent: Wednesday, March 6, 2013 10:03 PM
>>>>> To: cloudstack-dev@incubator.apache.org
>>>>> Subject: Re: [DISCUSS] Syslog enhancements
>>>>>
>>>>> As per discussion I have created the FS for this feature at
>>>>>
>>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+for+Syslog+
>>>>> E
>>>>> nhancements.
>>>>> This will use the log4j appender to send the syslog messages.
>>>>>
>>>>> Thanks,
>>>>> Anshul
>>>>> On 09/01/13 07:22, Hari Kannan wrote:
>>>>>> Hi,
>>>>>>
>>>>>> The core requirements I see are
>>>>>>
>>>>>> -          Write to local - in syslog format
>>>>>>
>>>>>> -          Send to remote sylog server
>>>>>>
>>>>>> -          write the messages with appropriate Log level/priority in syslog
>>>>> format
>>>>>> If log4j appender could do it, we certainly should consider/leverage
>>>>>> that -
>>>>> I'm not an expert on this, is this something that can be automated
>>>>> when we install CloudStack?
>>>>>> Hari
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>>> Sent: Tuesday, January 8, 2013 9:17 AM
>>>>>> To:cloudstack-dev@incubator.apache.org
>>>>>> Subject: Re: [DISCUSS] Syslog enhancements
>>>>>>
>>>>>> On Tue, Jan 8, 2013 at 12:12 PM, Ram Ganesh<Ra...@citrix.com>
>>>>> wrote:
>>>>>>>> -----Original Message-----
>>>>>>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>>>>>>>> Sent: 08 January 2013 22:10
>>>>>>>> To:cloudstack-dev@incubator.apache.org
>>>>>>>> Subject: RE: [DISCUSS] Syslog enhancements
>>>>>>>>
>>>>>>>> Ram and Hari,
>>>>>>>>
>>>>>>>> I continue to have trouble with this feature.  What I'm used to
>>>>>>>> seeing in syslogs are not the things that are being described here.
>>>>>>>> They're usually some log level of an application.  If there are
>>>>>>>> system events that are not logged to our own logs, why not log
>>>>>>>> them to our own logs and use the log4j syslogappender to filter
>>>>>>>> them and send them to syslog.  Why write something else?
>>>>>>>>
>>>>>>>> Do you have any use cases where system events should not be
>>> logged
>>>>>>>> into CloudStack's logs?
>>>>>>>             I do not think so. I think it is just the legacy code. We
>>>>>>> need to ensure that those events also get logged into the log files.
>>>>>>> Will take the log4j syslogappender path then
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Ram
>>>>>>>
>>>>>> So does this obviate the need for the Syslog feature itself? Can we
>>>>>> just
>>>>> make this a docs bug to document how to configure log4j?
>>>>>> --David

Re: [DISCUSS] Syslog enhancements

Posted by Anshul Gangwar <an...@citrix.com>.
Because of the class, from which I am getting alerts is present in 
com.cloud.alert package.

Thanks,
Anshul
On 08/03/13 18:19, Alex Huang wrote:
> Why not org.apache.cloudstack.alert?  It is an apache project.
>
> --Alex
>
>> -----Original Message-----
>> From: Anshul Gangwar
>> Sent: Thursday, March 7, 2013 9:58 PM
>> To: Alex Huang
>> Cc: cloudstack-dev@incubator.apache.org
>> Subject: Re: [DISCUSS] Syslog enhancements
>>
>> Hi Alex,
>>
>> I will change it to package level then i.e. *com.cloud.alert *instead of
>> *com.cloud.alert.AlertManagerImpl*.
>>
>> Thanks,
>> Anshul
>> On 08/03/13 06:24, Alex Huang wrote:
>>> Anshul,
>>>
>>> Like the FS.  The only thing I have is it's probably better to have us actually
>> change the log category to something like org.apache.cloudstack.alerts.  It
>> takes a little code change but would make much more sense that
>> AlertManagerImpl.
>>> --Alex
>>>
>>>> -----Original Message-----
>>>> From: Anshul Gangwar [mailto:anshul.gangwar@citrix.com]
>>>> Sent: Wednesday, March 6, 2013 10:03 PM
>>>> To: cloudstack-dev@incubator.apache.org
>>>> Subject: Re: [DISCUSS] Syslog enhancements
>>>>
>>>> As per discussion I have created the FS for this feature at
>>>>
>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+for+Syslog+
>>>> E
>>>> nhancements.
>>>> This will use the log4j appender to send the syslog messages.
>>>>
>>>> Thanks,
>>>> Anshul
>>>> On 09/01/13 07:22, Hari Kannan wrote:
>>>>> Hi,
>>>>>
>>>>> The core requirements I see are
>>>>>
>>>>> -          Write to local - in syslog format
>>>>>
>>>>> -          Send to remote sylog server
>>>>>
>>>>> -          write the messages with appropriate Log level/priority in syslog
>>>> format
>>>>> If log4j appender could do it, we certainly should consider/leverage
>>>>> that -
>>>> I'm not an expert on this, is this something that can be automated
>>>> when we install CloudStack?
>>>>> Hari
>>>>>
>>>>> -----Original Message-----
>>>>> From: David Nalley [mailto:david@gnsa.us]
>>>>> Sent: Tuesday, January 8, 2013 9:17 AM
>>>>> To:cloudstack-dev@incubator.apache.org
>>>>> Subject: Re: [DISCUSS] Syslog enhancements
>>>>>
>>>>> On Tue, Jan 8, 2013 at 12:12 PM, Ram Ganesh<Ra...@citrix.com>
>>>> wrote:
>>>>>>> -----Original Message-----
>>>>>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>>>>>>> Sent: 08 January 2013 22:10
>>>>>>> To:cloudstack-dev@incubator.apache.org
>>>>>>> Subject: RE: [DISCUSS] Syslog enhancements
>>>>>>>
>>>>>>> Ram and Hari,
>>>>>>>
>>>>>>> I continue to have trouble with this feature.  What I'm used to
>>>>>>> seeing in syslogs are not the things that are being described here.
>>>>>>> They're usually some log level of an application.  If there are
>>>>>>> system events that are not logged to our own logs, why not log
>>>>>>> them to our own logs and use the log4j syslogappender to filter
>>>>>>> them and send them to syslog.  Why write something else?
>>>>>>>
>>>>>>> Do you have any use cases where system events should not be
>> logged
>>>>>>> into CloudStack's logs?
>>>>>>            I do not think so. I think it is just the legacy code. We
>>>>>> need to ensure that those events also get logged into the log files.
>>>>>> Will take the log4j syslogappender path then
>>>>>>
>>>>>> Thanks,
>>>>>> Ram
>>>>>>
>>>>> So does this obviate the need for the Syslog feature itself? Can we
>>>>> just
>>>> make this a docs bug to document how to configure log4j?
>>>>> --David

RE: [DISCUSS] Syslog enhancements

Posted by Alex Huang <Al...@citrix.com>.
Why not org.apache.cloudstack.alert?  It is an apache project.

--Alex

> -----Original Message-----
> From: Anshul Gangwar
> Sent: Thursday, March 7, 2013 9:58 PM
> To: Alex Huang
> Cc: cloudstack-dev@incubator.apache.org
> Subject: Re: [DISCUSS] Syslog enhancements
> 
> Hi Alex,
> 
> I will change it to package level then i.e. *com.cloud.alert *instead of
> *com.cloud.alert.AlertManagerImpl*.
> 
> Thanks,
> Anshul
> On 08/03/13 06:24, Alex Huang wrote:
> > Anshul,
> >
> > Like the FS.  The only thing I have is it's probably better to have us actually
> change the log category to something like org.apache.cloudstack.alerts.  It
> takes a little code change but would make much more sense that
> AlertManagerImpl.
> >
> > --Alex
> >
> >> -----Original Message-----
> >> From: Anshul Gangwar [mailto:anshul.gangwar@citrix.com]
> >> Sent: Wednesday, March 6, 2013 10:03 PM
> >> To: cloudstack-dev@incubator.apache.org
> >> Subject: Re: [DISCUSS] Syslog enhancements
> >>
> >> As per discussion I have created the FS for this feature at
> >>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+for+Syslog+
> >> E
> >> nhancements.
> >> This will use the log4j appender to send the syslog messages.
> >>
> >> Thanks,
> >> Anshul
> >> On 09/01/13 07:22, Hari Kannan wrote:
> >>> Hi,
> >>>
> >>> The core requirements I see are
> >>>
> >>> -          Write to local - in syslog format
> >>>
> >>> -          Send to remote sylog server
> >>>
> >>> -          write the messages with appropriate Log level/priority in syslog
> >> format
> >>> If log4j appender could do it, we certainly should consider/leverage
> >>> that -
> >> I'm not an expert on this, is this something that can be automated
> >> when we install CloudStack?
> >>> Hari
> >>>
> >>> -----Original Message-----
> >>> From: David Nalley [mailto:david@gnsa.us]
> >>> Sent: Tuesday, January 8, 2013 9:17 AM
> >>> To:cloudstack-dev@incubator.apache.org
> >>> Subject: Re: [DISCUSS] Syslog enhancements
> >>>
> >>> On Tue, Jan 8, 2013 at 12:12 PM, Ram Ganesh<Ra...@citrix.com>
> >> wrote:
> >>>>> -----Original Message-----
> >>>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> >>>>> Sent: 08 January 2013 22:10
> >>>>> To:cloudstack-dev@incubator.apache.org
> >>>>> Subject: RE: [DISCUSS] Syslog enhancements
> >>>>>
> >>>>> Ram and Hari,
> >>>>>
> >>>>> I continue to have trouble with this feature.  What I'm used to
> >>>>> seeing in syslogs are not the things that are being described here.
> >>>>> They're usually some log level of an application.  If there are
> >>>>> system events that are not logged to our own logs, why not log
> >>>>> them to our own logs and use the log4j syslogappender to filter
> >>>>> them and send them to syslog.  Why write something else?
> >>>>>
> >>>>> Do you have any use cases where system events should not be
> logged
> >>>>> into CloudStack's logs?
> >>>>           I do not think so. I think it is just the legacy code. We
> >>>> need to ensure that those events also get logged into the log files.
> >>>> Will take the log4j syslogappender path then
> >>>>
> >>>> Thanks,
> >>>> Ram
> >>>>
> >>> So does this obviate the need for the Syslog feature itself? Can we
> >>> just
> >> make this a docs bug to document how to configure log4j?
> >>> --David

Re: [DISCUSS] Syslog enhancements

Posted by Anshul Gangwar <an...@citrix.com>.
Hi Alex,

I will change it to package level then i.e. *com.cloud.alert *instead of 
*com.cloud.alert.AlertManagerImpl*.

Thanks,
Anshul
On 08/03/13 06:24, Alex Huang wrote:
> Anshul,
>
> Like the FS.  The only thing I have is it's probably better to have us actually change the log category to something like org.apache.cloudstack.alerts.  It takes a little code change but would make much more sense that AlertManagerImpl.
>
> --Alex
>
>> -----Original Message-----
>> From: Anshul Gangwar [mailto:anshul.gangwar@citrix.com]
>> Sent: Wednesday, March 6, 2013 10:03 PM
>> To: cloudstack-dev@incubator.apache.org
>> Subject: Re: [DISCUSS] Syslog enhancements
>>
>> As per discussion I have created the FS for this feature at
>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+for+Syslog+E
>> nhancements.
>> This will use the log4j appender to send the syslog messages.
>>
>> Thanks,
>> Anshul
>> On 09/01/13 07:22, Hari Kannan wrote:
>>> Hi,
>>>
>>> The core requirements I see are
>>>
>>> -          Write to local - in syslog format
>>>
>>> -          Send to remote sylog server
>>>
>>> -          write the messages with appropriate Log level/priority in syslog
>> format
>>> If log4j appender could do it, we certainly should consider/leverage that -
>> I'm not an expert on this, is this something that can be automated when we
>> install CloudStack?
>>> Hari
>>>
>>> -----Original Message-----
>>> From: David Nalley [mailto:david@gnsa.us]
>>> Sent: Tuesday, January 8, 2013 9:17 AM
>>> To:cloudstack-dev@incubator.apache.org
>>> Subject: Re: [DISCUSS] Syslog enhancements
>>>
>>> On Tue, Jan 8, 2013 at 12:12 PM, Ram Ganesh<Ra...@citrix.com>
>> wrote:
>>>>> -----Original Message-----
>>>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>>>>> Sent: 08 January 2013 22:10
>>>>> To:cloudstack-dev@incubator.apache.org
>>>>> Subject: RE: [DISCUSS] Syslog enhancements
>>>>>
>>>>> Ram and Hari,
>>>>>
>>>>> I continue to have trouble with this feature.  What I'm used to
>>>>> seeing in syslogs are not the things that are being described here.
>>>>> They're usually some log level of an application.  If there are
>>>>> system events that are not logged to our own logs, why not log them
>>>>> to our own logs and use the log4j syslogappender to filter them and
>>>>> send them to syslog.  Why write something else?
>>>>>
>>>>> Do you have any use cases where system events should not be logged
>>>>> into CloudStack's logs?
>>>>           I do not think so. I think it is just the legacy code. We
>>>> need to ensure that those events also get logged into the log files.
>>>> Will take the log4j syslogappender path then
>>>>
>>>> Thanks,
>>>> Ram
>>>>
>>> So does this obviate the need for the Syslog feature itself? Can we just
>> make this a docs bug to document how to configure log4j?
>>> --David

RE: [DISCUSS] Syslog enhancements

Posted by Alex Huang <Al...@citrix.com>.
Anshul,

Like the FS.  The only thing I have is it's probably better to have us actually change the log category to something like org.apache.cloudstack.alerts.  It takes a little code change but would make much more sense that AlertManagerImpl.

--Alex

> -----Original Message-----
> From: Anshul Gangwar [mailto:anshul.gangwar@citrix.com]
> Sent: Wednesday, March 6, 2013 10:03 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: [DISCUSS] Syslog enhancements
> 
> As per discussion I have created the FS for this feature at
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+for+Syslog+E
> nhancements.
> This will use the log4j appender to send the syslog messages.
> 
> Thanks,
> Anshul
> On 09/01/13 07:22, Hari Kannan wrote:
> > Hi,
> >
> > The core requirements I see are
> >
> > -          Write to local - in syslog format
> >
> > -          Send to remote sylog server
> >
> > -          write the messages with appropriate Log level/priority in syslog
> format
> >
> > If log4j appender could do it, we certainly should consider/leverage that -
> I'm not an expert on this, is this something that can be automated when we
> install CloudStack?
> >
> > Hari
> >
> > -----Original Message-----
> > From: David Nalley [mailto:david@gnsa.us]
> > Sent: Tuesday, January 8, 2013 9:17 AM
> > To:cloudstack-dev@incubator.apache.org
> > Subject: Re: [DISCUSS] Syslog enhancements
> >
> > On Tue, Jan 8, 2013 at 12:12 PM, Ram Ganesh<Ra...@citrix.com>
> wrote:
> >>> -----Original Message-----
> >>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> >>> Sent: 08 January 2013 22:10
> >>> To:cloudstack-dev@incubator.apache.org
> >>> Subject: RE: [DISCUSS] Syslog enhancements
> >>>
> >>> Ram and Hari,
> >>>
> >>> I continue to have trouble with this feature.  What I'm used to
> >>> seeing in syslogs are not the things that are being described here.
> >>> They're usually some log level of an application.  If there are
> >>> system events that are not logged to our own logs, why not log them
> >>> to our own logs and use the log4j syslogappender to filter them and
> >>> send them to syslog.  Why write something else?
> >>>
> >>> Do you have any use cases where system events should not be logged
> >>> into CloudStack's logs?
> >>          I do not think so. I think it is just the legacy code. We
> >> need to ensure that those events also get logged into the log files.
> >> Will take the log4j syslogappender path then
> >>
> >> Thanks,
> >> Ram
> >>
> > So does this obviate the need for the Syslog feature itself? Can we just
> make this a docs bug to document how to configure log4j?
> >
> > --David

Re: [DISCUSS] Syslog enhancements

Posted by Anshul Gangwar <an...@citrix.com>.
As per discussion I have created the FS for this feature at 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+for+Syslog+Enhancements.
This will use the log4j appender to send the syslog messages.

Thanks,
Anshul
On 09/01/13 07:22, Hari Kannan wrote:
> Hi,
>
> The core requirements I see are
>
> -          Write to local - in syslog format
>
> -          Send to remote sylog server
>
> -          write the messages with appropriate Log level/priority in syslog format
>
> If log4j appender could do it, we certainly should consider/leverage that - I'm not an expert on this, is this something that can be automated when we install CloudStack?
>
> Hari
>
> -----Original Message-----
> From: David Nalley [mailto:david@gnsa.us]
> Sent: Tuesday, January 8, 2013 9:17 AM
> To:cloudstack-dev@incubator.apache.org
> Subject: Re: [DISCUSS] Syslog enhancements
>
> On Tue, Jan 8, 2013 at 12:12 PM, Ram Ganesh<Ra...@citrix.com>  wrote:
>>> -----Original Message-----
>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>>> Sent: 08 January 2013 22:10
>>> To:cloudstack-dev@incubator.apache.org
>>> Subject: RE: [DISCUSS] Syslog enhancements
>>>
>>> Ram and Hari,
>>>
>>> I continue to have trouble with this feature.  What I'm used to
>>> seeing in syslogs are not the things that are being described here.
>>> They're usually some log level of an application.  If there are
>>> system events that are not logged to our own logs, why not log them
>>> to our own logs and use the log4j syslogappender to filter them and
>>> send them to syslog.  Why write something else?
>>>
>>> Do you have any use cases where system events should not be logged
>>> into CloudStack's logs?
>>          I do not think so. I think it is just the legacy code. We need
>> to ensure that those events also get logged into the log files. Will
>> take the log4j syslogappender path then
>>
>> Thanks,
>> Ram
>>
> So does this obviate the need for the Syslog feature itself? Can we just make this a docs bug to document how to configure log4j?
>
> --David

RE: [DISCUSS] Syslog enhancements

Posted by Hari Kannan <ha...@citrix.com>.
Hi,

The core requirements I see are 

-          Write to local - in syslog format

-          Send to remote sylog server

-          write the messages with appropriate Log level/priority in syslog format

If log4j appender could do it, we certainly should consider/leverage that - I'm not an expert on this, is this something that can be automated when we install CloudStack?

Hari

-----Original Message-----
From: David Nalley [mailto:david@gnsa.us] 
Sent: Tuesday, January 8, 2013 9:17 AM
To: cloudstack-dev@incubator.apache.org
Subject: Re: [DISCUSS] Syslog enhancements

On Tue, Jan 8, 2013 at 12:12 PM, Ram Ganesh <Ra...@citrix.com> wrote:
>> -----Original Message-----
>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>> Sent: 08 January 2013 22:10
>> To: cloudstack-dev@incubator.apache.org
>> Subject: RE: [DISCUSS] Syslog enhancements
>>
>> Ram and Hari,
>>
>> I continue to have trouble with this feature.  What I'm used to 
>> seeing in syslogs are not the things that are being described here.  
>> They're usually some log level of an application.  If there are 
>> system events that are not logged to our own logs, why not log them 
>> to our own logs and use the log4j syslogappender to filter them and 
>> send them to syslog.  Why write something else?
>>
>> Do you have any use cases where system events should not be logged 
>> into CloudStack's logs?
>
>         I do not think so. I think it is just the legacy code. We need 
> to ensure that those events also get logged into the log files. Will 
> take the log4j syslogappender path then
>
> Thanks,
> Ram
>

So does this obviate the need for the Syslog feature itself? Can we just make this a docs bug to document how to configure log4j?

--David

Re: [DISCUSS] Syslog enhancements

Posted by David Nalley <da...@gnsa.us>.
On Tue, Jan 8, 2013 at 12:12 PM, Ram Ganesh <Ra...@citrix.com> wrote:
>> -----Original Message-----
>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>> Sent: 08 January 2013 22:10
>> To: cloudstack-dev@incubator.apache.org
>> Subject: RE: [DISCUSS] Syslog enhancements
>>
>> Ram and Hari,
>>
>> I continue to have trouble with this feature.  What I'm used to seeing
>> in syslogs are not the things that are being described here.  They're
>> usually some log level of an application.  If there are system events
>> that are not logged to our own logs, why not log them to our own logs
>> and use the log4j syslogappender to filter them and send them to
>> syslog.  Why write something else?
>>
>> Do you have any use cases where system events should not be logged into
>> CloudStack's logs?
>
>         I do not think so. I think it is just the legacy code. We need to ensure that those events also get logged into the log files. Will take the log4j syslogappender path then
>
> Thanks,
> Ram
>

So does this obviate the need for the Syslog feature itself? Can we
just make this a docs bug to document how to configure log4j?

--David

RE: [DISCUSS] Syslog enhancements

Posted by Ram Ganesh <Ra...@citrix.com>.
> -----Original Message-----
> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> Sent: 08 January 2013 22:10
> To: cloudstack-dev@incubator.apache.org
> Subject: RE: [DISCUSS] Syslog enhancements
> 
> Ram and Hari,
> 
> I continue to have trouble with this feature.  What I'm used to seeing
> in syslogs are not the things that are being described here.  They're
> usually some log level of an application.  If there are system events
> that are not logged to our own logs, why not log them to our own logs
> and use the log4j syslogappender to filter them and send them to
> syslog.  Why write something else?
> 
> Do you have any use cases where system events should not be logged into
> CloudStack's logs?

	I do not think so. I think it is just the legacy code. We need to ensure that those events also get logged into the log files. Will take the log4j syslogappender path then

Thanks,
Ram


> 
> --Alex
> 
> > -----Original Message-----
> > From: Ram Ganesh [mailto:Ram.Ganesh@citrix.com]
> > Sent: Tuesday, January 08, 2013 7:46 AM
> > To: cloudstack-dev@incubator.apache.org
> > Subject: RE: [DISCUSS] Syslog enhancements
> >
> > > -----Original Message-----
> > > From: Chip Childers [mailto:chip.childers@sungard.com]
> > > Sent: 04 January 2013 00:13
> > > To: cloudstack-dev@incubator.apache.org
> > > Subject: Re: [DISCUSS] Syslog enhancements
> > >
> > > I think that Ram and Hari are talking about CloudStack system
> "events"
> > > (call this set 1). The log4j conversation is around log messages
> being
> > > sent through the logger (call this set 2).
> > >
> > > If we assume that (2) is a superset of (1), then IMO there is no
> > > reason to do something different from the log4j syslog appender.
> On
> > > the other hand, if there is a portion of set (1) that is not
> included
> > > in set (2), then I actually think we have a logging problem to fix.
> >
> > Sorry for getting back late on this. The intent of this enhancement
> is to send
> > out system events in multiple(configured) formats. SNMP and Syslogs
> are
> > two formats. Users can choose the format of their interest based on
> their
> > existing element management infrastructure. Currently in CloudStack I
> guess
> > not all system events are logged into the log file.
> >
> >
> > >
> > > On Thu, Jan 3, 2013 at 1:36 PM, John Kinsella <jl...@stratosec.co>
> wrote:
> > > > Ram - my coffee's still kicking in, but that's still not clear to
> me.
> > > Maybe you could put some sample logs in the wiki? Based off what
> you
> > > have there right now (IP, time stamp, message type, log level, log
> > > message) this comes already from the log4j appender.  Sample output
> > > that I just set up by setting the syslog appender level to DEBUG
> and
> > > setting up my syslog daemon on the master to accept network traffic
> ("-
> > > r" flag in /etc/sysconfig/syslog on centos)
> > > >
> > > > Jan  3 12:33:46 localhost.localdomain DEBUG
> > > [cloud.alert.ClusterAlertAdapter] (Cluster-Notification-1:) Receive
> > > cluster alert, EventArgs:
> com.cloud.cluster.ClusterNodeJoinEventArgs
> > > >
> > > > Whether localhost.localdomain is an IP or resolved hostname is
> based
> > > on syslogd/syslog-ng settings. Happy to write up a wiki on this
> > > (probably should anyways) but still trying to figure out if your
> plan
> > > is to provide more than this...
> > > >
> > > > John
> > > >
> > > > On Jan 3, 2013, at 8:53 AM, Ram Ganesh <Ra...@citrix.com>
> > wrote:
> > > >
> > > >> Alex,
> > > >>
> > > >> With this requirement CloudStack will send out events in syslog
> > > format. Apart from sending them in SNMP format(if configured
> > > accordingly) and also in email format. Hope it is clear
> > > >>
> > > >> Thanks,
> > > >> Ram
> > > >>
> > > >>> -----Original Message-----
> > > >>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> > > >>> Sent: 03 January 2013 00:14
> > > >>> To: cloudstack-dev@incubator.apache.org
> > > >>> Cc: Hari Kannan
> > > >>> Subject: RE: [DISCUSS] Syslog enhancements
> > > >>>
> > > >>> Here's some references for people who don't know log4j and
> syslog
> > > well.
> > > >>>
> > > >>> http://loggly.com/support/sending-data/logging-
> from/application-
> > > >>> logs/java/
> > > >>>
> > > >>> Maybe all we need is someone to add this information to our
> wiki or
> > > >>> maybe this is only a docs improvement?
> > > >>>
> > > >>> --Alex
> > > >>>
> > > >>>> -----Original Message-----
> > > >>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> > > >>>> Sent: Wednesday, January 02, 2013 10:39 AM
> > > >>>> To: cloudstack-dev@incubator.apache.org
> > > >>>> Cc: Hari Kannan
> > > >>>> Subject: RE: [DISCUSS] Syslog enhancements
> > > >>>>
> > > >>>> Hari,
> > > >>>>
> > > >>>> I echo John's question here.  I don't see any requirements on
> the
> > > >>> wiki that
> > > >>>> require more than a syslog appender for log4j.  What this
> means is
> > > >>> that
> > > >>>> whatever is logged to our current log file will get sent to
> > > syslog.
> > > >>> That's
> > > >>>> something someone can configure today on existing releases.
> Do
> > > you
> > > >>> have
> > > >>>> more use cases?  For example, is there anything that should be
> > > logged
> > > >>> to
> > > >>>> syslogs but not in our logs or vice versa?
> > > >>>>
> > > >>>> --Alex
> > > >>>>
> > > >>>>> -----Original Message-----
> > > >>>>> From: John Kinsella [mailto:jlk@stratosec.co]
> > > >>>>> Sent: Wednesday, December 26, 2012 1:53 PM
> > > >>>>> To: cloudstack-dev@incubator.apache.org
> > > >>>>> Subject: Re: [DISCUSS] Syslog enhancements
> > > >>>>>
> > > >>>>> (Changed subject as noted by Alex)
> > > >>>>>
> > > >>>>> Question - is this feature something beyond using the syslog
> > > >>> appender in
> > > >>>>> log4j?
> > > >>>>>
> > > >>>>> One thing I'd like to see is logs using key-vaue pairs. The
> > > closer
> > > >>> to that we
> > > >>>> can
> > > >>>>> get, the easier it is for me to have the logs consumed by a
> > > >>> separate
> > > >>>> analytics
> > > >>>>> package.
> > > >>>>>
> > > >>>>> One nitpick - syslog can be udp or tcp.
> > > >>>>>
> > > >>>>> On Dec 26, 2012, at 11:12 AM, Hari Kannan
> > > <ha...@citrix.com>
> > > >>> wrote:
> > > >>>>>
> > > >>>>>> Hello All,
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> I wish to propose syslog enhancements in CloudStack - I have
> > > >>> added
> > > >>>> some
> > > >>>>> details
> > > >>>>>
> > > >>>>
> > >
> > here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
> > > >>>>> hancements> along with a JIRA ticket 772
> > > >>>>>>
> > > >>>>>
> > > >>
> > > >>
> > > >
> > > > Stratosec - Secure Infrastructure as a Service
> > > > o: 415.315.9385
> > > > @johnlkinsella
> > > >

RE: [DISCUSS] Syslog enhancements

Posted by Alex Huang <Al...@citrix.com>.
Ram and Hari,

I continue to have trouble with this feature.  What I'm used to seeing in syslogs are not the things that are being described here.  They're usually some log level of an application.  If there are system events that are not logged to our own logs, why not log them to our own logs and use the log4j syslogappender to filter them and send them to syslog.  Why write something else?

Do you have any use cases where system events should not be logged into CloudStack's logs?

--Alex

> -----Original Message-----
> From: Ram Ganesh [mailto:Ram.Ganesh@citrix.com]
> Sent: Tuesday, January 08, 2013 7:46 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: RE: [DISCUSS] Syslog enhancements
> 
> > -----Original Message-----
> > From: Chip Childers [mailto:chip.childers@sungard.com]
> > Sent: 04 January 2013 00:13
> > To: cloudstack-dev@incubator.apache.org
> > Subject: Re: [DISCUSS] Syslog enhancements
> >
> > I think that Ram and Hari are talking about CloudStack system "events"
> > (call this set 1). The log4j conversation is around log messages being
> > sent through the logger (call this set 2).
> >
> > If we assume that (2) is a superset of (1), then IMO there is no
> > reason to do something different from the log4j syslog appender.  On
> > the other hand, if there is a portion of set (1) that is not included
> > in set (2), then I actually think we have a logging problem to fix.
> 
> Sorry for getting back late on this. The intent of this enhancement is to send
> out system events in multiple(configured) formats. SNMP and Syslogs are
> two formats. Users can choose the format of their interest based on their
> existing element management infrastructure. Currently in CloudStack I guess
> not all system events are logged into the log file.
> 
> 
> >
> > On Thu, Jan 3, 2013 at 1:36 PM, John Kinsella <jl...@stratosec.co> wrote:
> > > Ram - my coffee's still kicking in, but that's still not clear to me.
> > Maybe you could put some sample logs in the wiki? Based off what you
> > have there right now (IP, time stamp, message type, log level, log
> > message) this comes already from the log4j appender.  Sample output
> > that I just set up by setting the syslog appender level to DEBUG and
> > setting up my syslog daemon on the master to accept network traffic ("-
> > r" flag in /etc/sysconfig/syslog on centos)
> > >
> > > Jan  3 12:33:46 localhost.localdomain DEBUG
> > [cloud.alert.ClusterAlertAdapter] (Cluster-Notification-1:) Receive
> > cluster alert, EventArgs: com.cloud.cluster.ClusterNodeJoinEventArgs
> > >
> > > Whether localhost.localdomain is an IP or resolved hostname is based
> > on syslogd/syslog-ng settings. Happy to write up a wiki on this
> > (probably should anyways) but still trying to figure out if your plan
> > is to provide more than this...
> > >
> > > John
> > >
> > > On Jan 3, 2013, at 8:53 AM, Ram Ganesh <Ra...@citrix.com>
> wrote:
> > >
> > >> Alex,
> > >>
> > >> With this requirement CloudStack will send out events in syslog
> > format. Apart from sending them in SNMP format(if configured
> > accordingly) and also in email format. Hope it is clear
> > >>
> > >> Thanks,
> > >> Ram
> > >>
> > >>> -----Original Message-----
> > >>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> > >>> Sent: 03 January 2013 00:14
> > >>> To: cloudstack-dev@incubator.apache.org
> > >>> Cc: Hari Kannan
> > >>> Subject: RE: [DISCUSS] Syslog enhancements
> > >>>
> > >>> Here's some references for people who don't know log4j and syslog
> > well.
> > >>>
> > >>> http://loggly.com/support/sending-data/logging-from/application-
> > >>> logs/java/
> > >>>
> > >>> Maybe all we need is someone to add this information to our wiki or
> > >>> maybe this is only a docs improvement?
> > >>>
> > >>> --Alex
> > >>>
> > >>>> -----Original Message-----
> > >>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> > >>>> Sent: Wednesday, January 02, 2013 10:39 AM
> > >>>> To: cloudstack-dev@incubator.apache.org
> > >>>> Cc: Hari Kannan
> > >>>> Subject: RE: [DISCUSS] Syslog enhancements
> > >>>>
> > >>>> Hari,
> > >>>>
> > >>>> I echo John's question here.  I don't see any requirements on the
> > >>> wiki that
> > >>>> require more than a syslog appender for log4j.  What this means is
> > >>> that
> > >>>> whatever is logged to our current log file will get sent to
> > syslog.
> > >>> That's
> > >>>> something someone can configure today on existing releases.  Do
> > you
> > >>> have
> > >>>> more use cases?  For example, is there anything that should be
> > logged
> > >>> to
> > >>>> syslogs but not in our logs or vice versa?
> > >>>>
> > >>>> --Alex
> > >>>>
> > >>>>> -----Original Message-----
> > >>>>> From: John Kinsella [mailto:jlk@stratosec.co]
> > >>>>> Sent: Wednesday, December 26, 2012 1:53 PM
> > >>>>> To: cloudstack-dev@incubator.apache.org
> > >>>>> Subject: Re: [DISCUSS] Syslog enhancements
> > >>>>>
> > >>>>> (Changed subject as noted by Alex)
> > >>>>>
> > >>>>> Question - is this feature something beyond using the syslog
> > >>> appender in
> > >>>>> log4j?
> > >>>>>
> > >>>>> One thing I'd like to see is logs using key-vaue pairs. The
> > closer
> > >>> to that we
> > >>>> can
> > >>>>> get, the easier it is for me to have the logs consumed by a
> > >>> separate
> > >>>> analytics
> > >>>>> package.
> > >>>>>
> > >>>>> One nitpick - syslog can be udp or tcp.
> > >>>>>
> > >>>>> On Dec 26, 2012, at 11:12 AM, Hari Kannan
> > <ha...@citrix.com>
> > >>> wrote:
> > >>>>>
> > >>>>>> Hello All,
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>> I wish to propose syslog enhancements in CloudStack - I have
> > >>> added
> > >>>> some
> > >>>>> details
> > >>>>>
> > >>>>
> >
> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
> > >>>>> hancements> along with a JIRA ticket 772
> > >>>>>>
> > >>>>>
> > >>
> > >>
> > >
> > > Stratosec - Secure Infrastructure as a Service
> > > o: 415.315.9385
> > > @johnlkinsella
> > >

Re: [DISCUSS] Syslog enhancements

Posted by John Burwell <jb...@basho.com>.
David,

I agree you -- what development work is required?  SNMP <> JMX bridges are available from various third parties.   A minimal bridge is provided in the Sun JRE [1].  log4j message formats are highly configurable [2] to conform to the expectations of almost any conceivable downstream log file collection and analysis package.

Thanks,
-John

[1] http://docs.oracle.com/javase/6/docs/technotes/guides/management/snmp.html
[2] http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html

On Jan 8, 2013, at 10:48 AM, David Nalley <da...@gnsa.us> wrote:

> On Tue, Jan 8, 2013 at 10:46 AM, Ram Ganesh <Ra...@citrix.com> wrote:
>>> -----Original Message-----
>>> From: Chip Childers [mailto:chip.childers@sungard.com]
>>> Sent: 04 January 2013 00:13
>>> To: cloudstack-dev@incubator.apache.org
>>> Subject: Re: [DISCUSS] Syslog enhancements
>>> 
>>> I think that Ram and Hari are talking about CloudStack system "events"
>>> (call this set 1). The log4j conversation is around log messages being
>>> sent through the logger (call this set 2).
>>> 
>>> If we assume that (2) is a superset of (1), then IMO there is no
>>> reason to do something different from the log4j syslog appender.  On
>>> the other hand, if there is a portion of set (1) that is not included
>>> in set (2), then I actually think we have a logging problem to fix.
>> 
>> Sorry for getting back late on this. The intent of this enhancement is to send out system events in multiple(configured) formats. SNMP and Syslogs are two formats. Users can choose the format of their interest based on their existing element management infrastructure. Currently in CloudStack I guess not all system events are logged into the log file.
>> 
>> 
> 
> As verbose as our logs are, there are still things missing from them??  :)
> 
> --David


Re: [DISCUSS] Syslog enhancements

Posted by David Nalley <da...@gnsa.us>.
On Tue, Jan 8, 2013 at 10:46 AM, Ram Ganesh <Ra...@citrix.com> wrote:
>> -----Original Message-----
>> From: Chip Childers [mailto:chip.childers@sungard.com]
>> Sent: 04 January 2013 00:13
>> To: cloudstack-dev@incubator.apache.org
>> Subject: Re: [DISCUSS] Syslog enhancements
>>
>> I think that Ram and Hari are talking about CloudStack system "events"
>> (call this set 1). The log4j conversation is around log messages being
>> sent through the logger (call this set 2).
>>
>> If we assume that (2) is a superset of (1), then IMO there is no
>> reason to do something different from the log4j syslog appender.  On
>> the other hand, if there is a portion of set (1) that is not included
>> in set (2), then I actually think we have a logging problem to fix.
>
> Sorry for getting back late on this. The intent of this enhancement is to send out system events in multiple(configured) formats. SNMP and Syslogs are two formats. Users can choose the format of their interest based on their existing element management infrastructure. Currently in CloudStack I guess not all system events are logged into the log file.
>
>

As verbose as our logs are, there are still things missing from them??  :)

--David

RE: [DISCUSS] Syslog enhancements

Posted by Ram Ganesh <Ra...@citrix.com>.
> -----Original Message-----
> From: Chip Childers [mailto:chip.childers@sungard.com]
> Sent: 04 January 2013 00:13
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: [DISCUSS] Syslog enhancements
> 
> I think that Ram and Hari are talking about CloudStack system "events"
> (call this set 1). The log4j conversation is around log messages being
> sent through the logger (call this set 2).
> 
> If we assume that (2) is a superset of (1), then IMO there is no
> reason to do something different from the log4j syslog appender.  On
> the other hand, if there is a portion of set (1) that is not included
> in set (2), then I actually think we have a logging problem to fix.

Sorry for getting back late on this. The intent of this enhancement is to send out system events in multiple(configured) formats. SNMP and Syslogs are two formats. Users can choose the format of their interest based on their existing element management infrastructure. Currently in CloudStack I guess not all system events are logged into the log file.


> 
> On Thu, Jan 3, 2013 at 1:36 PM, John Kinsella <jl...@stratosec.co> wrote:
> > Ram - my coffee's still kicking in, but that's still not clear to me.
> Maybe you could put some sample logs in the wiki? Based off what you
> have there right now (IP, time stamp, message type, log level, log
> message) this comes already from the log4j appender.  Sample output
> that I just set up by setting the syslog appender level to DEBUG and
> setting up my syslog daemon on the master to accept network traffic ("-
> r" flag in /etc/sysconfig/syslog on centos)
> >
> > Jan  3 12:33:46 localhost.localdomain DEBUG
> [cloud.alert.ClusterAlertAdapter] (Cluster-Notification-1:) Receive
> cluster alert, EventArgs: com.cloud.cluster.ClusterNodeJoinEventArgs
> >
> > Whether localhost.localdomain is an IP or resolved hostname is based
> on syslogd/syslog-ng settings. Happy to write up a wiki on this
> (probably should anyways) but still trying to figure out if your plan
> is to provide more than this...
> >
> > John
> >
> > On Jan 3, 2013, at 8:53 AM, Ram Ganesh <Ra...@citrix.com> wrote:
> >
> >> Alex,
> >>
> >> With this requirement CloudStack will send out events in syslog
> format. Apart from sending them in SNMP format(if configured
> accordingly) and also in email format. Hope it is clear
> >>
> >> Thanks,
> >> Ram
> >>
> >>> -----Original Message-----
> >>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> >>> Sent: 03 January 2013 00:14
> >>> To: cloudstack-dev@incubator.apache.org
> >>> Cc: Hari Kannan
> >>> Subject: RE: [DISCUSS] Syslog enhancements
> >>>
> >>> Here's some references for people who don't know log4j and syslog
> well.
> >>>
> >>> http://loggly.com/support/sending-data/logging-from/application-
> >>> logs/java/
> >>>
> >>> Maybe all we need is someone to add this information to our wiki or
> >>> maybe this is only a docs improvement?
> >>>
> >>> --Alex
> >>>
> >>>> -----Original Message-----
> >>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> >>>> Sent: Wednesday, January 02, 2013 10:39 AM
> >>>> To: cloudstack-dev@incubator.apache.org
> >>>> Cc: Hari Kannan
> >>>> Subject: RE: [DISCUSS] Syslog enhancements
> >>>>
> >>>> Hari,
> >>>>
> >>>> I echo John's question here.  I don't see any requirements on the
> >>> wiki that
> >>>> require more than a syslog appender for log4j.  What this means is
> >>> that
> >>>> whatever is logged to our current log file will get sent to
> syslog.
> >>> That's
> >>>> something someone can configure today on existing releases.  Do
> you
> >>> have
> >>>> more use cases?  For example, is there anything that should be
> logged
> >>> to
> >>>> syslogs but not in our logs or vice versa?
> >>>>
> >>>> --Alex
> >>>>
> >>>>> -----Original Message-----
> >>>>> From: John Kinsella [mailto:jlk@stratosec.co]
> >>>>> Sent: Wednesday, December 26, 2012 1:53 PM
> >>>>> To: cloudstack-dev@incubator.apache.org
> >>>>> Subject: Re: [DISCUSS] Syslog enhancements
> >>>>>
> >>>>> (Changed subject as noted by Alex)
> >>>>>
> >>>>> Question - is this feature something beyond using the syslog
> >>> appender in
> >>>>> log4j?
> >>>>>
> >>>>> One thing I'd like to see is logs using key-vaue pairs. The
> closer
> >>> to that we
> >>>> can
> >>>>> get, the easier it is for me to have the logs consumed by a
> >>> separate
> >>>> analytics
> >>>>> package.
> >>>>>
> >>>>> One nitpick - syslog can be udp or tcp.
> >>>>>
> >>>>> On Dec 26, 2012, at 11:12 AM, Hari Kannan
> <ha...@citrix.com>
> >>> wrote:
> >>>>>
> >>>>>> Hello All,
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> I wish to propose syslog enhancements in CloudStack - I have
> >>> added
> >>>> some
> >>>>> details
> >>>>>
> >>>>
> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
> >>>>> hancements> along with a JIRA ticket 772
> >>>>>>
> >>>>>
> >>
> >>
> >
> > Stratosec - Secure Infrastructure as a Service
> > o: 415.315.9385
> > @johnlkinsella
> >

Re: [DISCUSS] Syslog enhancements

Posted by Chip Childers <ch...@sungard.com>.
I think that Ram and Hari are talking about CloudStack system "events"
(call this set 1). The log4j conversation is around log messages being
sent through the logger (call this set 2).

If we assume that (2) is a superset of (1), then IMO there is no
reason to do something different from the log4j syslog appender.  On
the other hand, if there is a portion of set (1) that is not included
in set (2), then I actually think we have a logging problem to fix.

On Thu, Jan 3, 2013 at 1:36 PM, John Kinsella <jl...@stratosec.co> wrote:
> Ram - my coffee's still kicking in, but that's still not clear to me.  Maybe you could put some sample logs in the wiki? Based off what you have there right now (IP, time stamp, message type, log level, log message) this comes already from the log4j appender.  Sample output that I just set up by setting the syslog appender level to DEBUG and setting up my syslog daemon on the master to accept network traffic ("-r" flag in /etc/sysconfig/syslog on centos)
>
> Jan  3 12:33:46 localhost.localdomain DEBUG [cloud.alert.ClusterAlertAdapter] (Cluster-Notification-1:) Receive cluster alert, EventArgs: com.cloud.cluster.ClusterNodeJoinEventArgs
>
> Whether localhost.localdomain is an IP or resolved hostname is based on syslogd/syslog-ng settings. Happy to write up a wiki on this (probably should anyways) but still trying to figure out if your plan is to provide more than this...
>
> John
>
> On Jan 3, 2013, at 8:53 AM, Ram Ganesh <Ra...@citrix.com> wrote:
>
>> Alex,
>>
>> With this requirement CloudStack will send out events in syslog format. Apart from sending them in SNMP format(if configured accordingly) and also in email format. Hope it is clear
>>
>> Thanks,
>> Ram
>>
>>> -----Original Message-----
>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>>> Sent: 03 January 2013 00:14
>>> To: cloudstack-dev@incubator.apache.org
>>> Cc: Hari Kannan
>>> Subject: RE: [DISCUSS] Syslog enhancements
>>>
>>> Here's some references for people who don't know log4j and syslog well.
>>>
>>> http://loggly.com/support/sending-data/logging-from/application-
>>> logs/java/
>>>
>>> Maybe all we need is someone to add this information to our wiki or
>>> maybe this is only a docs improvement?
>>>
>>> --Alex
>>>
>>>> -----Original Message-----
>>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>>>> Sent: Wednesday, January 02, 2013 10:39 AM
>>>> To: cloudstack-dev@incubator.apache.org
>>>> Cc: Hari Kannan
>>>> Subject: RE: [DISCUSS] Syslog enhancements
>>>>
>>>> Hari,
>>>>
>>>> I echo John's question here.  I don't see any requirements on the
>>> wiki that
>>>> require more than a syslog appender for log4j.  What this means is
>>> that
>>>> whatever is logged to our current log file will get sent to syslog.
>>> That's
>>>> something someone can configure today on existing releases.  Do you
>>> have
>>>> more use cases?  For example, is there anything that should be logged
>>> to
>>>> syslogs but not in our logs or vice versa?
>>>>
>>>> --Alex
>>>>
>>>>> -----Original Message-----
>>>>> From: John Kinsella [mailto:jlk@stratosec.co]
>>>>> Sent: Wednesday, December 26, 2012 1:53 PM
>>>>> To: cloudstack-dev@incubator.apache.org
>>>>> Subject: Re: [DISCUSS] Syslog enhancements
>>>>>
>>>>> (Changed subject as noted by Alex)
>>>>>
>>>>> Question - is this feature something beyond using the syslog
>>> appender in
>>>>> log4j?
>>>>>
>>>>> One thing I'd like to see is logs using key-vaue pairs. The closer
>>> to that we
>>>> can
>>>>> get, the easier it is for me to have the logs consumed by a
>>> separate
>>>> analytics
>>>>> package.
>>>>>
>>>>> One nitpick - syslog can be udp or tcp.
>>>>>
>>>>> On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com>
>>> wrote:
>>>>>
>>>>>> Hello All,
>>>>>>
>>>>>>
>>>>>>
>>>>>> I wish to propose syslog enhancements in CloudStack - I have
>>> added
>>>> some
>>>>> details
>>>>>
>>>> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
>>>>> hancements> along with a JIRA ticket 772
>>>>>>
>>>>>
>>
>>
>
> Stratosec - Secure Infrastructure as a Service
> o: 415.315.9385
> @johnlkinsella
>

Re: [DISCUSS] Syslog enhancements

Posted by John Kinsella <jl...@stratosec.co>.
Ram - my coffee's still kicking in, but that's still not clear to me.  Maybe you could put some sample logs in the wiki? Based off what you have there right now (IP, time stamp, message type, log level, log message) this comes already from the log4j appender.  Sample output that I just set up by setting the syslog appender level to DEBUG and setting up my syslog daemon on the master to accept network traffic ("-r" flag in /etc/sysconfig/syslog on centos)

Jan  3 12:33:46 localhost.localdomain DEBUG [cloud.alert.ClusterAlertAdapter] (Cluster-Notification-1:) Receive cluster alert, EventArgs: com.cloud.cluster.ClusterNodeJoinEventArgs

Whether localhost.localdomain is an IP or resolved hostname is based on syslogd/syslog-ng settings. Happy to write up a wiki on this (probably should anyways) but still trying to figure out if your plan is to provide more than this...

John

On Jan 3, 2013, at 8:53 AM, Ram Ganesh <Ra...@citrix.com> wrote:

> Alex,
> 
> With this requirement CloudStack will send out events in syslog format. Apart from sending them in SNMP format(if configured accordingly) and also in email format. Hope it is clear
> 
> Thanks,
> Ram
> 
>> -----Original Message-----
>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>> Sent: 03 January 2013 00:14
>> To: cloudstack-dev@incubator.apache.org
>> Cc: Hari Kannan
>> Subject: RE: [DISCUSS] Syslog enhancements
>> 
>> Here's some references for people who don't know log4j and syslog well.
>> 
>> http://loggly.com/support/sending-data/logging-from/application-
>> logs/java/
>> 
>> Maybe all we need is someone to add this information to our wiki or
>> maybe this is only a docs improvement?
>> 
>> --Alex
>> 
>>> -----Original Message-----
>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>>> Sent: Wednesday, January 02, 2013 10:39 AM
>>> To: cloudstack-dev@incubator.apache.org
>>> Cc: Hari Kannan
>>> Subject: RE: [DISCUSS] Syslog enhancements
>>> 
>>> Hari,
>>> 
>>> I echo John's question here.  I don't see any requirements on the
>> wiki that
>>> require more than a syslog appender for log4j.  What this means is
>> that
>>> whatever is logged to our current log file will get sent to syslog.
>> That's
>>> something someone can configure today on existing releases.  Do you
>> have
>>> more use cases?  For example, is there anything that should be logged
>> to
>>> syslogs but not in our logs or vice versa?
>>> 
>>> --Alex
>>> 
>>>> -----Original Message-----
>>>> From: John Kinsella [mailto:jlk@stratosec.co]
>>>> Sent: Wednesday, December 26, 2012 1:53 PM
>>>> To: cloudstack-dev@incubator.apache.org
>>>> Subject: Re: [DISCUSS] Syslog enhancements
>>>> 
>>>> (Changed subject as noted by Alex)
>>>> 
>>>> Question - is this feature something beyond using the syslog
>> appender in
>>>> log4j?
>>>> 
>>>> One thing I'd like to see is logs using key-vaue pairs. The closer
>> to that we
>>> can
>>>> get, the easier it is for me to have the logs consumed by a
>> separate
>>> analytics
>>>> package.
>>>> 
>>>> One nitpick - syslog can be udp or tcp.
>>>> 
>>>> On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com>
>> wrote:
>>>> 
>>>>> Hello All,
>>>>> 
>>>>> 
>>>>> 
>>>>> I wish to propose syslog enhancements in CloudStack - I have
>> added
>>> some
>>>> details
>>>> 
>>> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
>>>> hancements> along with a JIRA ticket 772
>>>>> 
>>>> 
> 
> 

Stratosec - Secure Infrastructure as a Service
o: 415.315.9385
@johnlkinsella


RE: [DISCUSS] Syslog enhancements

Posted by Ram Ganesh <Ra...@citrix.com>.
Alex,

With this requirement CloudStack will send out events in syslog format. Apart from sending them in SNMP format(if configured accordingly) and also in email format. Hope it is clear

Thanks,
Ram

> -----Original Message-----
> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> Sent: 03 January 2013 00:14
> To: cloudstack-dev@incubator.apache.org
> Cc: Hari Kannan
> Subject: RE: [DISCUSS] Syslog enhancements
> 
> Here's some references for people who don't know log4j and syslog well.
> 
> http://loggly.com/support/sending-data/logging-from/application-
> logs/java/
> 
> Maybe all we need is someone to add this information to our wiki or
> maybe this is only a docs improvement?
> 
> --Alex
> 
> > -----Original Message-----
> > From: Alex Huang [mailto:Alex.Huang@citrix.com]
> > Sent: Wednesday, January 02, 2013 10:39 AM
> > To: cloudstack-dev@incubator.apache.org
> > Cc: Hari Kannan
> > Subject: RE: [DISCUSS] Syslog enhancements
> >
> > Hari,
> >
> > I echo John's question here.  I don't see any requirements on the
> wiki that
> > require more than a syslog appender for log4j.  What this means is
> that
> > whatever is logged to our current log file will get sent to syslog.
> That's
> > something someone can configure today on existing releases.  Do you
> have
> > more use cases?  For example, is there anything that should be logged
> to
> > syslogs but not in our logs or vice versa?
> >
> > --Alex
> >
> > > -----Original Message-----
> > > From: John Kinsella [mailto:jlk@stratosec.co]
> > > Sent: Wednesday, December 26, 2012 1:53 PM
> > > To: cloudstack-dev@incubator.apache.org
> > > Subject: Re: [DISCUSS] Syslog enhancements
> > >
> > > (Changed subject as noted by Alex)
> > >
> > > Question - is this feature something beyond using the syslog
> appender in
> > > log4j?
> > >
> > > One thing I'd like to see is logs using key-vaue pairs. The closer
> to that we
> > can
> > > get, the easier it is for me to have the logs consumed by a
> separate
> > analytics
> > > package.
> > >
> > > One nitpick - syslog can be udp or tcp.
> > >
> > > On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com>
> wrote:
> > >
> > > > Hello All,
> > > >
> > > >
> > > >
> > > > I wish to propose syslog enhancements in CloudStack - I have
> added
> > some
> > > details
> > >
> > here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
> > > hancements> along with a JIRA ticket 772
> > > >
> > >


RE: [DISCUSS] Syslog enhancements

Posted by Alex Huang <Al...@citrix.com>.
Here's some references for people who don't know log4j and syslog well.

http://loggly.com/support/sending-data/logging-from/application-logs/java/

Maybe all we need is someone to add this information to our wiki or maybe this is only a docs improvement?

--Alex

> -----Original Message-----
> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> Sent: Wednesday, January 02, 2013 10:39 AM
> To: cloudstack-dev@incubator.apache.org
> Cc: Hari Kannan
> Subject: RE: [DISCUSS] Syslog enhancements
> 
> Hari,
> 
> I echo John's question here.  I don't see any requirements on the wiki that
> require more than a syslog appender for log4j.  What this means is that
> whatever is logged to our current log file will get sent to syslog.  That's
> something someone can configure today on existing releases.  Do you have
> more use cases?  For example, is there anything that should be logged to
> syslogs but not in our logs or vice versa?
> 
> --Alex
> 
> > -----Original Message-----
> > From: John Kinsella [mailto:jlk@stratosec.co]
> > Sent: Wednesday, December 26, 2012 1:53 PM
> > To: cloudstack-dev@incubator.apache.org
> > Subject: Re: [DISCUSS] Syslog enhancements
> >
> > (Changed subject as noted by Alex)
> >
> > Question - is this feature something beyond using the syslog appender in
> > log4j?
> >
> > One thing I'd like to see is logs using key-vaue pairs. The closer to that we
> can
> > get, the easier it is for me to have the logs consumed by a separate
> analytics
> > package.
> >
> > One nitpick - syslog can be udp or tcp.
> >
> > On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com> wrote:
> >
> > > Hello All,
> > >
> > >
> > >
> > > I wish to propose syslog enhancements in CloudStack - I have added
> some
> > details
> >
> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
> > hancements> along with a JIRA ticket 772
> > >
> >


RE: [DISCUSS] Syslog enhancements

Posted by Alex Huang <Al...@citrix.com>.
Hari,

I echo John's question here.  I don't see any requirements on the wiki that require more than a syslog appender for log4j.  What this means is that whatever is logged to our current log file will get sent to syslog.  That's something someone can configure today on existing releases.  Do you have more use cases?  For example, is there anything that should be logged to syslogs but not in our logs or vice versa?

--Alex  

> -----Original Message-----
> From: John Kinsella [mailto:jlk@stratosec.co]
> Sent: Wednesday, December 26, 2012 1:53 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: [DISCUSS] Syslog enhancements
> 
> (Changed subject as noted by Alex)
> 
> Question - is this feature something beyond using the syslog appender in
> log4j?
> 
> One thing I'd like to see is logs using key-vaue pairs. The closer to that we can
> get, the easier it is for me to have the logs consumed by a separate analytics
> package.
> 
> One nitpick - syslog can be udp or tcp.
> 
> On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com> wrote:
> 
> > Hello All,
> >
> >
> >
> > I wish to propose syslog enhancements in CloudStack - I have added some
> details
> here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+en
> hancements> along with a JIRA ticket 772
> >
> 


Re: [DISCUSS] Syslog enhancements

Posted by John Kinsella <jl...@stratosec.co>.
(Changed subject as noted by Alex)

Question - is this feature something beyond using the syslog appender in log4j?

One thing I'd like to see is logs using key-vaue pairs. The closer to that we can get, the easier it is for me to have the logs consumed by a separate analytics package.

One nitpick - syslog can be udp or tcp.

On Dec 26, 2012, at 11:12 AM, Hari Kannan <ha...@citrix.com> wrote:

> Hello All,
> 
> 
> 
> I wish to propose syslog enhancements in CloudStack - I have added some details here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+enhancements> along with a JIRA ticket 772
> 



Re: [PROPOSAL]Syslog enhancements

Posted by David Nalley <da...@gnsa.us>.
On Wed, Dec 26, 2012 at 2:12 PM, Hari Kannan <ha...@citrix.com> wrote:
> Hello All,
>
>
>
> I wish to propose syslog enhancements in CloudStack - I have added some details here<https://cwiki.apache.org/confluence/display/CLOUDSTACK/syslog+enhancements> along with a JIRA ticket 772
>
>


Hari: Forgive me for being late to the game.
This proposal isn't terribly enlightening, and I am left confused. Can
you tell me what functionality you are seeking to add that isn't
covered by the procedure in this document:
http://docs.cloudstack.org/Knowledge_Base/Sending_log_messages_to_a_syslog_server