22 lines
772 B
Markdown
22 lines
772 B
Markdown
|
+++
|
||
|
title = "[cfengine] log to syslog"
|
||
|
date = "2014-02-24T21:51:39+00:00"
|
||
|
author = "Gibheer"
|
||
|
draft = false
|
||
|
+++
|
||
|
|
||
|
When you want to start with cfengine, it is not exactly obvious how some stuff works. To make
|
||
|
it easier for others, I will write about some stuff I find out in the process.
|
||
|
|
||
|
For the start, here is the first thing I found out. By default cfengine logs to files
|
||
|
in the work directory. This can get a bit ugly, when the agent is running every 5min.
|
||
|
As I use cf-execd, I added the option
|
||
|
[executorfacility](https://cfengine.com/docs/3.5/reference-components-cfexecd.html#executorfacility)
|
||
|
to the exed section.
|
||
|
|
||
|
body executor control {
|
||
|
executorfacility => "LOG_LOCAL7";
|
||
|
}
|
||
|
|
||
|
After that a restart of execd will result in logs appearing through syslog.
|