aboutsummaryrefslogtreecommitdiff
path: root/system/socklog/README.Slackware
blob: 4cc0c2b4d87ec6ca9adfe5d62a020a3b586b8877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
To use the socklog package for system logging, following steps can be followed:

Create the service directory and log directories by running the socklog-conf program:

  # socklog-conf unix daemon adm

If you are replacing another service providing system logging through the socket /dev/log,
 such as syslogd, stop it now and ensure that it will not be restarted on runlevel change
 or system reboot.

Tell runsvdir about the new service:

  # ln -s /etc/sv/socklog-unix /var/service/

Wait five seconds for the service to start and then check the log directories, e.g.:

  # less /var/log/socklog/main/current

 Optionally configure the socklog-unix service by editing the corresponding run scripts and config files:

    /var/service/socklog-unix/run
    /var/service/socklog-unix/log/run
    /var/log/socklog/*/config

-------------------------------------

For capturing kernel log:

Create the service directory and log directories by running the socklog-conf program:

  # socklog-conf klog daemon adm

If you are replacing another service providing kernel logging, such as klogd on Linux or syslogd on BSD,
 stop it now and ensure that it will not be restarted on runlevel change or system reboot.

Tell runsvdir about the new service:

  # ln -s /etc/sv/socklog-klog /var/service/

Wait five seconds for the service to start and then check the log directory:

  # less /var/log/socklog-klog/main/current

Optionally configure the socklog-klog service by editing the corresponding run scripts and config file:

    /var/service/socklog-klog/run
    /var/service/socklog-klog/log/run
    /var/log/socklog-klog/config

----------------------------------------

For more details and setting up network logging, check the following link:

http://smarden.org/socklog/configuration.html