[lttng-dev] LTTng hourly/weekly/monthly tracing

Philippe Proulx eeppeliteloop at gmail.com
Thu Dec 10 19:58:47 EST 2015


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.

See the --tracefile-size and --tracefile-count options of lttng(1)'s create
command.

Philippe Proulx

On Thu, Dec 10, 2015 at 7:55 PM, Jeffrey Chen <cpthk at hotmail.com> wrote:

> Hi:
>
> 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.
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20151210/c1be4ede/attachment.html>


More information about the lttng-dev mailing list