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

Liu Yuan namei.unix at gmail.com
Mon Jan 6 08:37:50 CET 2014


On Mon, Jan 06, 2014 at 10:45:42AM +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. If SHEEPDOG_DOG_LOG_PATH is specified
> additionally, the log is written to the file of the path.
> 
> Below is an example of the log:
> - with standard syslog
>   Dec 27 10:57:42 dhcpff33 sheepdog admin operation[9809]:  dog
>   cluster format -c 1
> - with custom path
>   2013 Dec 27 17:20:56 :  dog vdi list
> 

Applied after removing extra blank lines.

Thanks
Yuan



More information about the sheepdog mailing list