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 garima015 <ga...@rediffmail.com> on 2006/11/29 21:29:07 UTC

Log4J System alerts

I have a requirement where 100 transactions are fired per second. 
Current application is using Log4J for generating the System alerts.
 I got to know that whenever the logger.error is used log4j is being used to
generate the alert while logger.error method is used. 
I want to restrict the number of times the alert is generated.Say if all
transactions are failing then i want that alerts should be 10 in number.
 Can somebody tell me how is this implemented and where exactly is the code
where alerts are generated.
Or if some body can give me any idea how to implement this.
Any help will be really appreciated.

-- 
View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7607284
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Log4J System alerts

Posted by garima015 <ga...@rediffmail.com>.
Can you please give me some more idea on how to create the filter on top of
that... and how that will be called 

thanks for ur immediate reply


James Stauffer wrote:
> 
> You could probably do that by creating a filter on the appender.
> 
> On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
>>
>> Say if 100 alerts are getting raised per second i want to limit them to
>> 10 or
>> some number.As i have to page alert to production team i dont want to
>> send
>> 100 page for some issue in such a short interval of time.
>>
>>
>> James Stauffer wrote:
>> >
>> > Are you saying that when there are a lot of events you only want a few
>> > events to make to the appender so that you aren't sent so many alerts?
>> >
>> > On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
>> >>
>> >> I have a requirement where 100 transactions are fired per second.
>> >> Current application is using Log4J for generating the System alerts.
>> >>  I got to know that whenever the logger.error is used log4j is being
>> used
>> >> to
>> >> generate the alert while logger.error method is used.
>> >> I want to restrict the number of times the alert is generated.Say if
>> all
>> >> transactions are failing then i want that alerts should be 10 in
>> number.
>> >>  Can somebody tell me how is this implemented and where exactly is the
>> >> code
>> >> where alerts are generated.
>> >> Or if some body can give me any idea how to implement this.
>> >> Any help will be really appreciated.
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7607284
>> >> Sent from the Log4j - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> >> For additional commands, e-mail: log4j-user-help@logging.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> > James Stauffer        http://www.geocities.com/stauffer_james/
>> > Are you good? Take the test at http://www.livingwaters.com/good/
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> > For additional commands, e-mail: log4j-user-help@logging.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7608696
>> Sent from the Log4j - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
> 
> 
> -- 
> James Stauffer        http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7609558
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: Log4J System alerts

Posted by garima015 <ga...@rediffmail.com>.
Thanks Heri i am able to read the xml file now.
Thanks for ur time.



Bender Heri wrote:
> 
> For auto configuration log4j.xml must be found in the classpath. Else you
> can do it within code by calling DOMConfigurator.configure(
> myFullOrRelativeFileName ).
> Heri
> 
>> -----Original Message-----
>> From: garima015 [mailto:garima_indiya@rediffmail.com]
>> Sent: Thursday, November 30, 2006 4:05 PM
>> To: log4j-user@logging.apache.org
>> Subject: RE: Log4J System alerts
>> 
>> 
>> 
>> Heri one more thing can we place log4j.xml in root directory 
>> of project as my
>> project is not a Web project so i wont be having web-inf in that!!!
>> 
>> 
>> garima015 wrote:
>> > 
>> > Thanks Heri..thanks for ur help!!!
>> > I hope log4j.xml will also be read in the same manner as
>> > log4j.properties..
>> > 
>> > 
>> > Bender Heri wrote:
>> >> 
>> >> If you want to work with filters you must use log4j.xml 
>> configuration
>> >> instead of log4j.properties. The properties configuration 
>> style does not
>> >> support filter entries. It's anyway recommended to use xml 
>> configuration
>> >> since:
>> >> - the auto configuration mechanisme of log4j looks first for the
>> >> log4j.xml file
>> >> - the properties configuration style is no more supported in future
>> >> releases
>> >> - In my opinion the xml is clearer and more self-documenting than
>> >> properties
>> >> 
>> >> TraceDenyFilter and XMLDenyFilter are self made classes 
>> derived from the
>> >> log4j....Filter class (see previous mail). They serve only 
>> as example how
>> >> you can configure your own filter. Note that you can also 
>> configure own
>> >> member properties of your own filter if they have standard setter
>> >> methods:
>> >> 
>> >>     public void setMyProperty( String aValue)
>> >> 
>> >> will be configured as 
>> >> 
>> >>     <param name="MyProperty" value="HelloWorld"/>)
>> >> 
>> >> The storage location of your self made filter is like any 
>> other class:
>> >> somewhere in the known classpath.
>> >> 
>> >> Heri
>> >> 
>> >>> -----Original Message-----
>> >>> From: garima015 [mailto:garima_indiya@rediffmail.com]
>> >>> Sent: Thursday, November 30, 2006 3:37 PM
>> >>> To: log4j-user@logging.apache.org
>> >>> Subject: Re: Log4J System alerts
>> >>> 
>> >>> 
>> >>> 
>> >>> Thanks Heri for ur help..
>> >>> one thing more i want to ask is is this configuration 
>> will be done in
>> >>> Log4j.properties..if not then where i have to write all 
>> this.And is
>> >>> TraceDenyFilter and XMLDenyFilter are self made filters or do 
>> >>> i have two
>> >>> build two classes extending these filters. In case so where i 
>> >>> have to save
>> >>> these filter classes.
>> >>> 
>> >>> ur help is really useful to me
>> >>> 
>> >>> 
>> >> 
>> >> 
>> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> >> For additional commands, e-mail: log4j-user-help@logging.apache.org
>> >> 
>> >> 
>> >> 
>> > 
>> > 
>> 
>> -- 
>> View this message in context: 
> http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7620955
> Sent from the Log4j - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7621426
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: Log4J System alerts

Posted by garima015 <ga...@rediffmail.com>.
Heri one more thing can we place log4j.xml in root directory of project as my
project is not a Web project so i wont be having web-inf in that!!!


garima015 wrote:
> 
> Thanks Heri..thanks for ur help!!!
> I hope log4j.xml will also be read in the same manner as
> log4j.properties..
> 
> 
> Bender Heri wrote:
>> 
>> If you want to work with filters you must use log4j.xml configuration
>> instead of log4j.properties. The properties configuration style does not
>> support filter entries. It's anyway recommended to use xml configuration
>> since:
>> - the auto configuration mechanisme of log4j looks first for the
>> log4j.xml file
>> - the properties configuration style is no more supported in future
>> releases
>> - In my opinion the xml is clearer and more self-documenting than
>> properties
>> 
>> TraceDenyFilter and XMLDenyFilter are self made classes derived from the
>> log4j....Filter class (see previous mail). They serve only as example how
>> you can configure your own filter. Note that you can also configure own
>> member properties of your own filter if they have standard setter
>> methods:
>> 
>>     public void setMyProperty( String aValue)
>> 
>> will be configured as 
>> 
>>     <param name="MyProperty" value="HelloWorld"/>)
>> 
>> The storage location of your self made filter is like any other class:
>> somewhere in the known classpath.
>> 
>> Heri
>> 
>>> -----Original Message-----
>>> From: garima015 [mailto:garima_indiya@rediffmail.com]
>>> Sent: Thursday, November 30, 2006 3:37 PM
>>> To: log4j-user@logging.apache.org
>>> Subject: Re: Log4J System alerts
>>> 
>>> 
>>> 
>>> Thanks Heri for ur help..
>>> one thing more i want to ask is is this configuration will be done in
>>> Log4j.properties..if not then where i have to write all this.And is
>>> TraceDenyFilter and XMLDenyFilter are self made filters or do 
>>> i have two
>>> build two classes extending these filters. In case so where i 
>>> have to save
>>> these filter classes.
>>> 
>>> ur help is really useful to me
>>> 
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7620955
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: Log4J System alerts

Posted by garima015 <ga...@rediffmail.com>.
Thanks Heri..thanks for ur help!!!
I hope log4j.xml will also be read in the same manner as log4j.properties..


Bender Heri wrote:
> 
> If you want to work with filters you must use log4j.xml configuration
> instead of log4j.properties. The properties configuration style does not
> support filter entries. It's anyway recommended to use xml configuration
> since:
> - the auto configuration mechanisme of log4j looks first for the log4j.xml
> file
> - the properties configuration style is no more supported in future
> releases
> - In my opinion the xml is clearer and more self-documenting than
> properties
> 
> TraceDenyFilter and XMLDenyFilter are self made classes derived from the
> log4j....Filter class (see previous mail). They serve only as example how
> you can configure your own filter. Note that you can also configure own
> member properties of your own filter if they have standard setter methods:
> 
>     public void setMyProperty( String aValue)
> 
> will be configured as 
> 
>     <param name="MyProperty" value="HelloWorld"/>)
> 
> The storage location of your self made filter is like any other class:
> somewhere in the known classpath.
> 
> Heri
> 
>> -----Original Message-----
>> From: garima015 [mailto:garima_indiya@rediffmail.com]
>> Sent: Thursday, November 30, 2006 3:37 PM
>> To: log4j-user@logging.apache.org
>> Subject: Re: Log4J System alerts
>> 
>> 
>> 
>> Thanks Heri for ur help..
>> one thing more i want to ask is is this configuration will be done in
>> Log4j.properties..if not then where i have to write all this.And is
>> TraceDenyFilter and XMLDenyFilter are self made filters or do 
>> i have two
>> build two classes extending these filters. In case so where i 
>> have to save
>> these filter classes.
>> 
>> ur help is really useful to me
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7620776
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Log4J System alerts

Posted by garima015 <ga...@rediffmail.com>.
Thanks Heri for ur help..
one thing more i want to ask is is this configuration will be done in
Log4j.properties..if not then where i have to write all this.And is
TraceDenyFilter and XMLDenyFilter are self made filters or do i have two
build two classes extending these filters. In case so where i have to save
these filter classes.

ur help is really useful to me


Bender Heri wrote:
> 
> Here a example how to configure filters. Note: Filters are only available
> if you use xml configuration.
> 
>     <appender name="CONSOLE.OUT" class="org.apache.log4j.ConsoleAppender">
>         <param name="target" value="System.out"/>
>         <layout class="org.apache.log4j.PatternLayout">
>             <param name="ConversionPattern" value="%d{HH:mm:ss.SSS} (%6r)
> %-5p [%-7t] %F:%L %x - %m%n"/>
>         </layout>
>         <filter class="org.apache.log4j.varia.LevelRangeFilter">
>             <param name="LevelMin" value="debug"/>
>             <param name="LevelMax" value="info"/>
>             <param name="AcceptOnMatch" value="false"/>
>         </filter>
>         <filter
> class="ch.ergonomics.pms.common.supervision.TraceDenyFilter"/>
>         <filter
> class="ch.ergonomics.pms.common.supervision.XMLDenyFilter"/>
>     </appender>
> 
> This appender has three filters attached. The first is a log4j built in
> filter (LevelRangeFilter), the thow others are self written filters,
> derived from org.apache.log4j.spi.Filter which filter LogEvents based on
> some values in MDC.
> If a LogEvent reaches an appender, it is presented to the attached filters
> in the order they are configured. The Filter results in:
> - ACCEPT  the LogEvent is accepted, no more further Filters are asked
> - DENY    the Log Event is rejected, no more further Filters are asked
> - NEUTRAL next filter in chain is asked
> 
> within a self written Filter you can implement any logic you want.
> 
> Heri
> 
>> -----Original Message-----
>> From: garima015 [mailto:garima_indiya@rediffmail.com]
>> Sent: Wednesday, November 29, 2006 11:39 PM
>> To: log4j-user@logging.apache.org
>> 
>> 
>> 
>> Can you please give me some more idea on how to create that 
>> filter..and how
>> this will be called
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7620430
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Log4J System alerts

Posted by James Stauffer <st...@gmail.com>.
I don't have experience with filters.  Check the javadocs and archives.

On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
>
> Can you please give me some more idea on how to create that filter..and how
> this will be called
>
> thanks for ur immediate reply
>
> James Stauffer wrote:
> >
> > You could probably do that by creating a filter on the appender.
> >
> > On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
> >>
> >> Say if 100 alerts are getting raised per second i want to limit them to
> >> 10 or
> >> some number.As i have to page alert to production team i dont want to
> >> send
> >> 100 page for some issue in such a short interval of time.
> >>
> >>
> >> James Stauffer wrote:
> >> >
> >> > Are you saying that when there are a lot of events you only want a few
> >> > events to make to the appender so that you aren't sent so many alerts?
> >> >
> >> > On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
> >> >>
> >> >> I have a requirement where 100 transactions are fired per second.
> >> >> Current application is using Log4J for generating the System alerts.
> >> >>  I got to know that whenever the logger.error is used log4j is being
> >> used
> >> >> to
> >> >> generate the alert while logger.error method is used.
> >> >> I want to restrict the number of times the alert is generated.Say if
> >> all
> >> >> transactions are failing then i want that alerts should be 10 in
> >> number.
> >> >>  Can somebody tell me how is this implemented and where exactly is the
> >> >> code
> >> >> where alerts are generated.
> >> >> Or if some body can give me any idea how to implement this.
> >> >> Any help will be really appreciated.
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >> http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7607284
> >> >> Sent from the Log4j - Users mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> >> >> For additional commands, e-mail: log4j-user-help@logging.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > James Stauffer        http://www.geocities.com/stauffer_james/
> >> > Are you good? Take the test at http://www.livingwaters.com/good/
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> >> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7608696
> >> Sent from the Log4j - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> >> For additional commands, e-mail: log4j-user-help@logging.apache.org
> >>
> >>
> >
> >
> > --
> > James Stauffer        http://www.geocities.com/stauffer_james/
> > Are you good? Take the test at http://www.livingwaters.com/good/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7609591
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Log4J System alerts

Posted by garima015 <ga...@rediffmail.com>.
Can you please give me some more idea on how to create that filter..and how
this will be called

thanks for ur immediate reply

James Stauffer wrote:
> 
> You could probably do that by creating a filter on the appender.
> 
> On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
>>
>> Say if 100 alerts are getting raised per second i want to limit them to
>> 10 or
>> some number.As i have to page alert to production team i dont want to
>> send
>> 100 page for some issue in such a short interval of time.
>>
>>
>> James Stauffer wrote:
>> >
>> > Are you saying that when there are a lot of events you only want a few
>> > events to make to the appender so that you aren't sent so many alerts?
>> >
>> > On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
>> >>
>> >> I have a requirement where 100 transactions are fired per second.
>> >> Current application is using Log4J for generating the System alerts.
>> >>  I got to know that whenever the logger.error is used log4j is being
>> used
>> >> to
>> >> generate the alert while logger.error method is used.
>> >> I want to restrict the number of times the alert is generated.Say if
>> all
>> >> transactions are failing then i want that alerts should be 10 in
>> number.
>> >>  Can somebody tell me how is this implemented and where exactly is the
>> >> code
>> >> where alerts are generated.
>> >> Or if some body can give me any idea how to implement this.
>> >> Any help will be really appreciated.
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7607284
>> >> Sent from the Log4j - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> >> For additional commands, e-mail: log4j-user-help@logging.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> > James Stauffer        http://www.geocities.com/stauffer_james/
>> > Are you good? Take the test at http://www.livingwaters.com/good/
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> > For additional commands, e-mail: log4j-user-help@logging.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7608696
>> Sent from the Log4j - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
> 
> 
> -- 
> James Stauffer        http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7609591
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Log4J System alerts

Posted by James Stauffer <st...@gmail.com>.
You could probably do that by creating a filter on the appender.

On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
>
> Say if 100 alerts are getting raised per second i want to limit them to 10 or
> some number.As i have to page alert to production team i dont want to send
> 100 page for some issue in such a short interval of time.
>
>
> James Stauffer wrote:
> >
> > Are you saying that when there are a lot of events you only want a few
> > events to make to the appender so that you aren't sent so many alerts?
> >
> > On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
> >>
> >> I have a requirement where 100 transactions are fired per second.
> >> Current application is using Log4J for generating the System alerts.
> >>  I got to know that whenever the logger.error is used log4j is being used
> >> to
> >> generate the alert while logger.error method is used.
> >> I want to restrict the number of times the alert is generated.Say if all
> >> transactions are failing then i want that alerts should be 10 in number.
> >>  Can somebody tell me how is this implemented and where exactly is the
> >> code
> >> where alerts are generated.
> >> Or if some body can give me any idea how to implement this.
> >> Any help will be really appreciated.
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7607284
> >> Sent from the Log4j - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> >> For additional commands, e-mail: log4j-user-help@logging.apache.org
> >>
> >>
> >
> >
> > --
> > James Stauffer        http://www.geocities.com/stauffer_james/
> > Are you good? Take the test at http://www.livingwaters.com/good/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7608696
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Log4J System alerts

Posted by garima015 <ga...@rediffmail.com>.
Being more specific...lets say i am generating alert when ever logger.fatal
is reached .Now i have 100 transaction per second all got failed due to some
single reason.So all 100 transaction will reach that logger.fatal code and
all will generate an email corresponding to it.I want to limit that number
say only 5 or 10 emails should only be generated in 1 second.

Ur immediate help will be really helpful.


garima015 wrote:
> 
> Say if 100 alerts are getting raised per second i want to limit them to 10
> or some number.As i have to page alert to production team i dont want to
> send 100 page for some issue in such a short interval of time. 
>  
> 
> James Stauffer wrote:
>> 
>> Are you saying that when there are a lot of events you only want a few
>> events to make to the appender so that you aren't sent so many alerts?
>> 
>> On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
>>>
>>> I have a requirement where 100 transactions are fired per second.
>>> Current application is using Log4J for generating the System alerts.
>>>  I got to know that whenever the logger.error is used log4j is being
>>> used to
>>> generate the alert while logger.error method is used.
>>> I want to restrict the number of times the alert is generated.Say if all
>>> transactions are failing then i want that alerts should be 10 in number.
>>>  Can somebody tell me how is this implemented and where exactly is the
>>> code
>>> where alerts are generated.
>>> Or if some body can give me any idea how to implement this.
>>> Any help will be really appreciated.
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7607284
>>> Sent from the Log4j - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>>
>>>
>> 
>> 
>> -- 
>> James Stauffer        http://www.geocities.com/stauffer_james/
>> Are you good? Take the test at http://www.livingwaters.com/good/
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7608698
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Log4J System alerts

Posted by garima015 <ga...@rediffmail.com>.
Say if 100 alerts are getting raised per second i want to limit them to 10 or
some number.As i have to page alert to production team i dont want to send
100 page for some issue in such a short interval of time. 
 

James Stauffer wrote:
> 
> Are you saying that when there are a lot of events you only want a few
> events to make to the appender so that you aren't sent so many alerts?
> 
> On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
>>
>> I have a requirement where 100 transactions are fired per second.
>> Current application is using Log4J for generating the System alerts.
>>  I got to know that whenever the logger.error is used log4j is being used
>> to
>> generate the alert while logger.error method is used.
>> I want to restrict the number of times the alert is generated.Say if all
>> transactions are failing then i want that alerts should be 10 in number.
>>  Can somebody tell me how is this implemented and where exactly is the
>> code
>> where alerts are generated.
>> Or if some body can give me any idea how to implement this.
>> Any help will be really appreciated.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7607284
>> Sent from the Log4j - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
> 
> 
> -- 
> James Stauffer        http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7608696
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Log4J System alerts

Posted by James Stauffer <st...@gmail.com>.
Are you saying that when there are a lot of events you only want a few
events to make to the appender so that you aren't sent so many alerts?

On 11/29/06, garima015 <ga...@rediffmail.com> wrote:
>
> I have a requirement where 100 transactions are fired per second.
> Current application is using Log4J for generating the System alerts.
>  I got to know that whenever the logger.error is used log4j is being used to
> generate the alert while logger.error method is used.
> I want to restrict the number of times the alert is generated.Say if all
> transactions are failing then i want that alerts should be 10 in number.
>  Can somebody tell me how is this implemented and where exactly is the code
> where alerts are generated.
> Or if some body can give me any idea how to implement this.
> Any help will be really appreciated.
>
> --
> View this message in context: http://www.nabble.com/Log4J-System-alerts-tf2727572.html#a7607284
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org