You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Adrian Speteanu <as...@gmail.com> on 2009/08/04 14:36:47 UTC

lognotate and log rollover at intervals

Hi guys,
I am trying all sorts of methods to generate better logs and better
ways to interpret the data obtained.

In jmeter.properties, there is this very useful piece of information:
"
# If the filename contains  paired single-quotes, then the name is processed
# as a SimpleDateFormat format applied to the current date, for example:
"
I use it like this:  log_file='jmeter-logs_'yyyyMMdd'.log'. This makes
a log with current date when first opening JMeter, but if jmeter runs
for more than a day, every new entry is written in that file as well.

It would be nice if a new file was written every day and I have no
idea how to do this.
So this is my first question, Q1: how to make a new logfile when
yyyyMMdd value changes?
________

Also and more important, I would also like to use lognotate for the
.jtl files the listener(-s) write. It would be nice to append
'yyyyMMdd-HH' to the filename and make a new logfile each hour.
Q2: Is this possible? How to... ?

I have no idea where to start looking, tried googling it for a while,
but I haven't found anything related to JMeter on this matter.

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


Re: lognotate and log rollover at intervals

Posted by Adrian Speteanu <as...@gmail.com>.
a-haaa. too bad, that is out of the question.
it would have been nice ( IF it would be more simple than what you say...)

On Wed, Aug 5, 2009 at 3:15 PM, sebb<se...@gmail.com> wrote:
> On 05/08/2009, Adrian Speteanu <as...@gmail.com> wrote:
>> apache tomcat can use some logkit to rotate it's log files.
>>  is it not possible to add such existing utilities to JMeter?
>
> Of course it's possible.
> However, AFAIK it would mean changing every single class that uses
> logging, which is a lot of work.
>
>>
>>
>>
>>  On Tue, Aug 4, 2009 at 3:45 PM, sebb<se...@gmail.com> wrote:
>>  > On 04/08/2009, Adrian Speteanu <as...@gmail.com> wrote:
>>  >> Hi guys,
>>  >>  I am trying all sorts of methods to generate better logs and better
>>  >>  ways to interpret the data obtained.
>>  >>
>>  >>  In jmeter.properties, there is this very useful piece of information:
>>  >>  "
>>  >>  # If the filename contains  paired single-quotes, then the name is processed
>>  >>  # as a SimpleDateFormat format applied to the current date, for example:
>>  >>  "
>>  >>  I use it like this:  log_file='jmeter-logs_'yyyyMMdd'.log'. This makes
>>  >>  a log with current date when first opening JMeter, but if jmeter runs
>>  >>  for more than a day, every new entry is written in that file as well.
>>  >>
>>  >>  It would be nice if a new file was written every day and I have no
>>  >>  idea how to do this.
>>  >>  So this is my first question, Q1: how to make a new logfile when
>>  >>  yyyyMMdd value changes?
>>  >
>>  > Not possible, the log file is created at startup only.
>>  >
>>  >>  ________
>>  >>
>>  >>  Also and more important, I would also like to use lognotate for the
>>  >>  .jtl files the listener(-s) write. It would be nice to append
>>  >>  'yyyyMMdd-HH' to the filename and make a new logfile each hour.
>>  >>  Q2: Is this possible? How to... ?
>>  >>
>>  >
>>  > Not possible to rotate log files for the same reason.
>>  >
>>  >>  I have no idea where to start looking, tried googling it for a while,
>>  >>  but I haven't found anything related to JMeter on this matter.
>>  >>
>>  >>  ---------------------------------------------------------------------
>>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >>
>>  >>
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >
>>  >
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: lognotate and log rollover at intervals

Posted by sebb <se...@gmail.com>.
On 05/08/2009, Adrian Speteanu <as...@gmail.com> wrote:
> apache tomcat can use some logkit to rotate it's log files.
>  is it not possible to add such existing utilities to JMeter?

Of course it's possible.
However, AFAIK it would mean changing every single class that uses
logging, which is a lot of work.

>
>
>
>  On Tue, Aug 4, 2009 at 3:45 PM, sebb<se...@gmail.com> wrote:
>  > On 04/08/2009, Adrian Speteanu <as...@gmail.com> wrote:
>  >> Hi guys,
>  >>  I am trying all sorts of methods to generate better logs and better
>  >>  ways to interpret the data obtained.
>  >>
>  >>  In jmeter.properties, there is this very useful piece of information:
>  >>  "
>  >>  # If the filename contains  paired single-quotes, then the name is processed
>  >>  # as a SimpleDateFormat format applied to the current date, for example:
>  >>  "
>  >>  I use it like this:  log_file='jmeter-logs_'yyyyMMdd'.log'. This makes
>  >>  a log with current date when first opening JMeter, but if jmeter runs
>  >>  for more than a day, every new entry is written in that file as well.
>  >>
>  >>  It would be nice if a new file was written every day and I have no
>  >>  idea how to do this.
>  >>  So this is my first question, Q1: how to make a new logfile when
>  >>  yyyyMMdd value changes?
>  >
>  > Not possible, the log file is created at startup only.
>  >
>  >>  ________
>  >>
>  >>  Also and more important, I would also like to use lognotate for the
>  >>  .jtl files the listener(-s) write. It would be nice to append
>  >>  'yyyyMMdd-HH' to the filename and make a new logfile each hour.
>  >>  Q2: Is this possible? How to... ?
>  >>
>  >
>  > Not possible to rotate log files for the same reason.
>  >
>  >>  I have no idea where to start looking, tried googling it for a while,
>  >>  but I haven't found anything related to JMeter on this matter.
>  >>
>  >>  ---------------------------------------------------------------------
>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >>
>  >>
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: lognotate and log rollover at intervals

Posted by Adrian Speteanu <as...@gmail.com>.
apache tomcat can use some logkit to rotate it's log files.
is it not possible to add such existing utilities to JMeter?



On Tue, Aug 4, 2009 at 3:45 PM, sebb<se...@gmail.com> wrote:
> On 04/08/2009, Adrian Speteanu <as...@gmail.com> wrote:
>> Hi guys,
>>  I am trying all sorts of methods to generate better logs and better
>>  ways to interpret the data obtained.
>>
>>  In jmeter.properties, there is this very useful piece of information:
>>  "
>>  # If the filename contains  paired single-quotes, then the name is processed
>>  # as a SimpleDateFormat format applied to the current date, for example:
>>  "
>>  I use it like this:  log_file='jmeter-logs_'yyyyMMdd'.log'. This makes
>>  a log with current date when first opening JMeter, but if jmeter runs
>>  for more than a day, every new entry is written in that file as well.
>>
>>  It would be nice if a new file was written every day and I have no
>>  idea how to do this.
>>  So this is my first question, Q1: how to make a new logfile when
>>  yyyyMMdd value changes?
>
> Not possible, the log file is created at startup only.
>
>>  ________
>>
>>  Also and more important, I would also like to use lognotate for the
>>  .jtl files the listener(-s) write. It would be nice to append
>>  'yyyyMMdd-HH' to the filename and make a new logfile each hour.
>>  Q2: Is this possible? How to... ?
>>
>
> Not possible to rotate log files for the same reason.
>
>>  I have no idea where to start looking, tried googling it for a while,
>>  but I haven't found anything related to JMeter on this matter.
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: lognotate and log rollover at intervals

Posted by sebb <se...@gmail.com>.
On 04/08/2009, Adrian Speteanu <as...@gmail.com> wrote:
> Hi guys,
>  I am trying all sorts of methods to generate better logs and better
>  ways to interpret the data obtained.
>
>  In jmeter.properties, there is this very useful piece of information:
>  "
>  # If the filename contains  paired single-quotes, then the name is processed
>  # as a SimpleDateFormat format applied to the current date, for example:
>  "
>  I use it like this:  log_file='jmeter-logs_'yyyyMMdd'.log'. This makes
>  a log with current date when first opening JMeter, but if jmeter runs
>  for more than a day, every new entry is written in that file as well.
>
>  It would be nice if a new file was written every day and I have no
>  idea how to do this.
>  So this is my first question, Q1: how to make a new logfile when
>  yyyyMMdd value changes?

Not possible, the log file is created at startup only.

>  ________
>
>  Also and more important, I would also like to use lognotate for the
>  .jtl files the listener(-s) write. It would be nice to append
>  'yyyyMMdd-HH' to the filename and make a new logfile each hour.
>  Q2: Is this possible? How to... ?
>

Not possible to rotate log files for the same reason.

>  I have no idea where to start looking, tried googling it for a while,
>  but I haven't found anything related to JMeter on this matter.
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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