Difference between revisions of "REST API"

From veeOp Wiki
Jump to: navigation, search
Line 15: Line 15:
  
 
  sudo service syslog restart
 
  sudo service syslog restart
 +
 +
You'll probably also want to rotate this log, go and edit instructions for syslog
 +
 +
nano /etc/logrotate.d/veeop
 +
 +
And fill it with:
 +
 +
/var/log/veeop.log {
 +
    missingok
 +
    notifempty
 +
    size 5M
 +
    yearly
 +
    create 0600 root root
 +
}

Revision as of 13:33, 16 October 2013

Setting up syslog

The server process uses node-syslog to get the logging done, which in turn requires some setup on the syslogd on your system. Again note, if you're using a pre-configured distro, this will already be setup for you.

In my example configuration in Pidora, we'll edit our syslog.conf

nano /etc/rsyslog.conf

And we'll add these two lines:

# Save veeOP daemon messages to	veeop.log
local5.*                                                /var/log/veeop.conf

Then restart the daemon with

sudo service syslog restart

You'll probably also want to rotate this log, go and edit instructions for syslog

nano /etc/logrotate.d/veeop

And fill it with:

/var/log/veeop.log {
    missingok
    notifempty
    size 5M
    yearly
    create 0600 root root
}