<div dir="ltr">I believe the closest you can get is trace file rotation. It's a rotation of trace files using a maximum size/stream file though, it's not time-based like you want.<div><br></div><div>See the --tracefile-size and --tracefile-count options of lttng(1)'s create command.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Philippe Proulx</div></div>
<br><div class="gmail_quote">On Thu, Dec 10, 2015 at 7:55 PM, Jeffrey Chen <span dir="ltr"><<a href="mailto:cpthk@hotmail.com" target="_blank">cpthk@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi:<br><br>I am using LTTng for tracing user-space application. Does LTTng support hourly/weekly/monthly rollover tracing? Some of the tracing libraries like log4j supports this, it will separate traces into different files for each hour/week/month depending on your setup. You could start to read the older traces while the user application is still running and writing traces. Does LTTng support this kind of feature? If not, what is the closest I could get? Ideally, I need to read the trace while the trace session is still running. It doesn't have to be real-time trace, could be couple hours old. I saw that LTTng has the snapshot mode, but it is still not exactly the same as the one I need, Snapshot mode could suffer from event lost, since it keeps overwriting old events. Thanks.<br><br>                                       </div></div>
<br>_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
<a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" rel="noreferrer" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<br></blockquote></div><br></div>