Has anyone done this? It seems simple enough in that you use the "-R" flag followed by a filename, but apparently, I'm missing something:
I get the same error message when using just the filename (as opposed to an absolute path), single quotes, and double quotes. There is definitely an entry for the filename in /etc/newsyslog.conf. Am I running the command incorrectly?
My OS is FreeBSD 10.1. I want to rotate manually this log file because I had to reconfigure the log entry format to provide www/awstats the necessary data, and www/awstats won't read the current log file because older entries still have the old log format.
Code:
root@freebsdhost:/var/log # newsyslog -R /var/log/httpd-ssl_request.log
newsyslog: At least one filename must be given when -R is specified.
usage: newsyslog [-CFNPnrsv] [-a directory] [-d directory] [-f config_file]
[-S pidfile] [-t timefmt] [[-R tagname] file ...]
I get the same error message when using just the filename (as opposed to an absolute path), single quotes, and double quotes. There is definitely an entry for the filename in /etc/newsyslog.conf. Am I running the command incorrectly?
My OS is FreeBSD 10.1. I want to rotate manually this log file because I had to reconfigure the log entry format to provide www/awstats the necessary data, and www/awstats won't read the current log file because older entries still have the old log format.