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

marked as duplicate by thrig, Christopher, DopeGhoti, Community May 30 '18 at 15:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

  • 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 7:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.