1

Working with Centos 7

In the rsyslog.conf file there are some rules that place logs in directories that start with a -/ (Dash slash) before stating which directory to place the logs, while others have the usual / followed by the directory.

I know the slash before the directory says to start from the root directory, but what does the dash do?

Does the dash mean something specific as I cannot find the meaning behind it anywhere.

Thank you! TDR

TDRez
  • 13
  • 4

1 Answers1

1

Duplicate question: What does the *.*;auth,authpriv.none -/var/log/syslog line mean in rsyslog config file?

The dash means don't flush the kernel buffer to disk after every write to the file

rusty shackleford
  • 2,365
  • 9
  • 21
  • I guess my querying skills need improvement haha, Thank you for your answer. What were your search keywords if you don't mind my asking? – TDRez May 30 '18 at 15:37
  • I searched `rsyslog "-/"` in `google`, normally a `-` before a word will exclude results which contain that word, so you need to put the `-/` in double quotes – rusty shackleford May 31 '18 at 07:05