[lttng-dev] Trace rotation across sessions

Thibault, Daniel Daniel.Thibault at drdc-rddc.gc.ca
Tue Mar 18 11:07:38 EDT 2014


----------------------------------------------------------------------
Date: Tue, 18 Mar 2014 10:19:47 -0400
From: Jérémie Galarneau <jeremie.galarneau at efficios.com>
To: Amit Margalit <AMITM at il.ibm.com>
Cc: lttng-dev <lttng-dev at lists.lttng.org>

> On Tue, Mar 18, 2014 at 4:52 AM, Amit Margalit <AMITM at il.ibm.com> wrote:
> > Our system has a running session that stays on continuously.
>>
> > Occasionally, our customer will upgrade the software, leading to a 
> > reboot, which in turn means we will have a new session.
> >
> > Is there any way to make LTTng aware of the total size of all sessions 
> > (current and past) and simply rotate files to keep the entire set of 
> > traces under a size limit?
>
> The only way I can see this working is by recreating the same session configuration
> (with the same output destination) and using lttng enable-channel's -C (tracefile-size) 
> and -W (tracefile-count) options to define an upper bound on each trace's size.
>
> Is this what you are looking for?
>
> J?r?mie Galarneau
> EfficiOS Inc.

   Wouldn't that just overwrite the destination trace files?

Daniel U. Thibault
Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
2459 route de la Bravoure
Québec QC  G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada | Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>



More information about the lttng-dev mailing list