freebsd_organization
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| freebsd_organization [2023/08/06 14:16] – created chris | freebsd_organization [2024/05/03 22:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Organize Log Files ====== | ====== Organize Log Files ====== | ||
| ===== OS: FreeBSD ===== | ===== OS: FreeBSD ===== | ||
| + | |||
| + | < | ||
| + | vim / | ||
| + | |||
| + | *.notice; | ||
| + | security.* | ||
| + | auth.info; | ||
| + | mail.info | ||
| + | cron.* | ||
| + | !-devd | ||
| + | *.=debug | ||
| + | daemon.info | ||
| + | console.info | ||
| + | *.* / | ||
| + | </ | ||
| + | |||
| + | Basically edit syslog.conf and add a .log to all files. | ||
| + | |||
| + | < | ||
| + | vim / | ||
| + | |||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | The files you edited in / | ||
| + | |||
| + | < | ||
| + | vim / | ||
| + | 0 | ||
| + | </ | ||
| + | |||
| + | append a -a / | ||
| + | |||
| + | == Why? == | ||
| + | |||
| + | Why I do this and why I waste my time doing it? | ||
| + | I like my log files to be concise and organized, I may never look at them but when I do I would like them all named x.log not cron, if for whatever reason I need to treuncate the logs to get some fresh log entries a simple truncate -s0 *.log is how I do it. | ||
| + | |||
| + | I do this with all my servers, even desktop. | ||
freebsd_organization.1691331396.txt.gz · Last modified: (external edit)
