[sheepdog] [PATCH] dog: log dog operation in syslog

Hitoshi Mitake mitake.hitoshi at gmail.com
Fri Dec 27 03:15:04 CET 2013


At Fri, 27 Dec 2013 11:01:40 +0900,
Hitoshi Mitake wrote:
> 
> This patch is based on a request from our internal team. Currently,
> sheepdog doesn't provide a way of logging admin's operation. The lack
> of this feature is serious because we cannot find any evidence of
> operation.
> 
> This patch adds the logging feature in dog command. If the environment
> variable, SHEEPDOG_DOG_LOG, has value, dog command logs its command
> line argument with syslog.
> 
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
>  dog/dog.c |   29 +++++++++++++++++++++++++++++
>  1 file changed, 29 insertions(+)

This is a sample log written by dog command:
Dec 27 10:57:42 dhcpff33 sheepdog admin operation[9809]:  dog cluster format -c 1

Thanks,
Hitoshi



More information about the sheepdog mailing list