jaymindabhi
Posts: 19
Joined: Tue Aug 02, 2016 3:31 pm
Location: AHMEDABAD

RPi complete activity log in Raspbian Jessie

Mon Sep 19, 2016 7:41 am

Hi All,

I want to take log of complete activity/tasks (everything) of RPi in the background. Means, after reading this log file, a person can understand or get ideas about completed processes/tasks on RPi.

In short, a complete system activity log of RPi.

The automatic generated text file would be a good option. As RPi reboot or power-off, next time with time stamp a new text file will generate.

Is it possible to do like this on RPi?
I have a Raspbian Jessie OS on RPi 3 Model B.

Please let me know.

Thanks,

Code: Select all

/* JAYMIN */

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: RPi complete activity log in Raspbian Jessie

Mon Sep 19, 2016 7:50 am

"Everything" is a really big word when it comes to complex computers.
Activity/Tasks can be a lot of things depending of how define "tasks" an how detailed you want the informations to be.

If you want to check system activity then learn to use "journalctl" ( https://www.digitalocean.com/community/ ... stemd-logs )
If you want more detail then that, then you need to be more specific.

mfa298
Posts: 1387
Joined: Tue Apr 22, 2014 11:18 am

Re: RPi complete activity log in Raspbian Jessie

Mon Sep 19, 2016 11:01 am

I've not tried it for a long time but the term you might want to search for is audit logging and is something linux has supported in the past (and I assume is still there).

Audit logging can give you a break down of absolutely everything that's being run on the Linux system however be warned, that can be a lot of data (for instance a simple start up script or cron job could be calling out to a number of external tools - this can lead to a lot of log entries).

jaymindabhi
Posts: 19
Joined: Tue Aug 02, 2016 3:31 pm
Location: AHMEDABAD

Re: RPi complete activity log in Raspbian Jessie

Mon Sep 19, 2016 11:30 am

Hi topguy,

Thanks for information. So, for that I need to be more specific about the information.
Will post a query again after deciding and defining "tasks" which I want to be logged.

topguy wrote:"Everything" is a really big word when it comes to complex computers.
Activity/Tasks can be a lot of things depending of how define "tasks" an how detailed you want the informations to be.

If you want to check system activity then learn to use "journalctl" ( https://www.digitalocean.com/community/ ... stemd-logs )
If you want more detail then that, then you need to be more specific.

Code: Select all

/* JAYMIN */

jaymindabhi
Posts: 19
Joined: Tue Aug 02, 2016 3:31 pm
Location: AHMEDABAD

Re: RPi complete activity log in Raspbian Jessie

Mon Sep 19, 2016 11:33 am

Hi mfa298,

YES, similarly to logging/audit logging. So, I/user can view, examine and study about activities/tasks completed or executed on RPi.
Will study about this system logging. Hope, I will find it for RPi.

Thanks,
mfa298 wrote:I've not tried it for a long time but the term you might want to search for is audit logging and is something linux has supported in the past (and I assume is still there).

Audit logging can give you a break down of absolutely everything that's being run on the Linux system however be warned, that can be a lot of data (for instance a simple start up script or cron job could be calling out to a number of external tools - this can lead to a lot of log entries).

Code: Select all

/* JAYMIN */

Return to “Advanced users”