<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to Project LogRotateWin</title><link href="https://sourceforge.net/p/logrotatewin/" rel="alternate"/><link href="https://sourceforge.net/p/logrotatewin/feed.atom" rel="self"/><id>https://sourceforge.net/p/logrotatewin/</id><updated>2024-11-11T08:54:15.134000Z</updated><subtitle>Recent changes to Project LogRotateWin</subtitle><entry><title>Do I run LogRotateWin as a service or as a scheduled task?</title><link href="https://sourceforge.net/p/logrotatewin/discussion/general/thread/9f8c26c275/?limit=50#7a22" rel="alternate"/><published>2024-11-11T08:54:15.134000Z</published><updated>2024-11-11T08:54:15.134000Z</updated><author><name>Peter Lundin</name><uri>https://sourceforge.net/u/peter021/</uri></author><id>https://sourceforge.neta638f647d3fc2d40f2a28a4ece3eecef95e48a2e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;How do you recoomend that I run it?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Puzzling error message from logrotate</title><link href="https://sourceforge.net/p/logrotatewin/discussion/general/thread/ea05616020/?limit=25#34a3" rel="alternate"/><published>2023-02-14T07:17:20.964000Z</published><updated>2023-02-14T07:17:20.964000Z</updated><author><name>Howard Spindel</name><uri>https://sourceforge.net/u/hspindel/</uri></author><id>https://sourceforge.neta17f2aa2d893667b0b2372813d909374ade2bf1e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Fpr anyone else reading this, I stumbled on the solution.  The opening brace on a section must be at the end of the line instead of the next line.&lt;/p&gt;
&lt;p&gt;I suggest that the parser be improved to handle this.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Puzzling error message from logrotate</title><link href="https://sourceforge.net/p/logrotatewin/discussion/general/thread/ea05616020/?limit=25#3342" rel="alternate"/><published>2023-02-14T07:08:19.205000Z</published><updated>2023-02-14T07:08:19.205000Z</updated><author><name>Howard Spindel</name><uri>https://sourceforge.net/u/hspindel/</uri></author><id>https://sourceforge.net31dde4ea5fb1757b4d4fd86fd2084e2f95a9a9b2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here is my config file:&lt;/p&gt;
&lt;p&gt;compress&lt;br/&gt;
nosmtpssl&lt;br/&gt;
smtpfrom howard@sci1.com&lt;br/&gt;
smtpport 25&lt;br/&gt;
smtpserver mail.sci1.com&lt;br/&gt;
ifempty&lt;br/&gt;
missingok&lt;/p&gt;
&lt;p&gt;e:\FastvueSyslog\dhcp2.sci1.com\dhcp2.sci1.com.log&lt;br/&gt;
{&lt;br/&gt;
rotate 5&lt;br/&gt;
weekly&lt;br/&gt;
mail howard@sci1.com&lt;br/&gt;
}&lt;/p&gt;
&lt;p&gt;Pretty simple. When I run logrotate, I get an error:&lt;/p&gt;
&lt;p&gt;logrotate: Unknown directive e:\FastvueSyslog\dhcp2.sci1.com\dhcp2.sci1.com.log&lt;/p&gt;
&lt;p&gt;What am I doing wrong?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Discussion for Home page</title><link href="https://sourceforge.net/p/logrotatewin/wiki/Home/?limit=25#9f83/9a39" rel="alternate"/><published>2023-02-13T07:24:50.477000Z</published><updated>2023-02-13T07:24:50.477000Z</updated><author><name>Howard Spindel</name><uri>https://sourceforge.net/u/hspindel/</uri></author><id>https://sourceforge.netf3ccdec4ea3a13516eccc706eb8f724c03684ef8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;For a test run, use logrotate -d &amp;lt;configfile&amp;gt;&amp;lt;/configfile&amp;gt;&lt;/p&gt;
&lt;p&gt;That will give you debugging output about what logrotate would do if it ran.  No files will be affected.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Discussion for Home page</title><link href="https://sourceforge.net/p/logrotatewin/wiki/Home/?limit=25#5035" rel="alternate"/><published>2023-02-13T03:15:50.553000Z</published><updated>2023-02-13T03:15:50.553000Z</updated><author><name>Howard Spindel</name><uri>https://sourceforge.net/u/hspindel/</uri></author><id>https://sourceforge.net90c0b57758835b5be416c33936a0a6afa34af704</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here is my config file:&lt;/p&gt;
&lt;p&gt;compress &lt;br/&gt;
nosmtpssl&lt;br/&gt;
smtpfrom howard@sci1.com&lt;br/&gt;
smtpport 25&lt;br/&gt;
smtpserver mail.sci1.com&lt;br/&gt;
ifempty&lt;br/&gt;
missingok&lt;/p&gt;
&lt;p&gt;e:\FastvueSyslog\dhcp2.sci1.com\dhcp2.sci1.com.log&lt;br/&gt;
{&lt;br/&gt;
    rotate 5&lt;br/&gt;
    weekly&lt;br/&gt;
    mail howard@sci1.com&lt;br/&gt;
}&lt;/p&gt;
&lt;p&gt;Pretty simple.  When I run logrotate, I get an error:&lt;/p&gt;
&lt;p&gt;logrotate: Unknown directive e:\FastvueSyslog\dhcp2.sci1.com\dhcp2.sci1.com.log&lt;/p&gt;
&lt;p&gt;What am I doing wrong?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>notifempty option is not working</title><link href="https://sourceforge.net/p/logrotatewin/discussion/general/thread/e58e0f51/?limit=25#60c3" rel="alternate"/><published>2021-12-21T10:15:11.218000Z</published><updated>2021-12-21T10:15:11.218000Z</updated><author><name>Kirill</name><uri>https://sourceforge.net/u/sam77726/</uri></author><id>https://sourceforge.netddecd79b389128a0c640ec1931d42aeb722c24f9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The problem is still reproduced on the latest version.&lt;/p&gt;
&lt;p&gt;My logrotate config:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;compress

C:\logs\*.log {
  weekly
  rotate 4
  missingok
  dateext
  notifempty
}
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Results:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&amp;amp; 'C:\Program Files (x86)\Ken Salter\LogRotate\logrotate.exe' -d -f -v C:\logrotate.d --state C:\logrotate.status

logrotate: Debug option set to true
logrotate: Verbose option set to true
logrotate: Force option set to true
logrotate: logrotate 0.0.0.18 - Copyright  (C) 2012-2016 Ken Salter
logrotate: Verbose option set to true
logrotate: C:\logrotate.d Adding to config files to process
logrotate: Setting alternate state file to C:\logrotate.status
logrotate: Parsing configuration file C:\logrotate.d\app.conf
logrotate: read line # Ansible managed
logrotate: Skipping comment
logrotate: read line
logrotate: read line compress
logrotate: Setting compress to True
logrotate: read line
logrotate: read line C:\logs\*.log {
logrotate: Processing new section
logrotate: Will process file path C:\logs\*.log
logrotate: read line weekly
logrotate: Setting weekly to True
logrotate: read line rotate 4
logrotate: Setting rotate to 4
logrotate: read line missingok
logrotate: Setting missingok to True
logrotate: read line dateext
logrotate: Setting dateext to True
logrotate: read line notifempty
logrotate: Unknown directive notifempty
logrotate: read line }
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Unknown directive extension</title><link href="https://sourceforge.net/p/logrotatewin/discussion/general/thread/a1a7c84c/?limit=100#9e79" rel="alternate"/><published>2021-11-14T16:02:48.663000Z</published><updated>2021-11-14T16:02:48.663000Z</updated><author><name>V@no</name><uri>https://sourceforge.net/u/vanowm/</uri></author><id>https://sourceforge.netf0c4818428b20057dc676b5615417f264c3d086f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;confirmed with v0.0.0.18&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Discussion for LogRotate page</title><link href="https://sourceforge.net/p/logrotatewin/wiki/LogRotate/?limit=100#4ded" rel="alternate"/><published>2021-11-14T15:50:28.466000Z</published><updated>2021-11-14T15:50:28.466000Z</updated><author><name>V@no</name><uri>https://sourceforge.net/u/vanowm/</uri></author><id>https://sourceforge.netfb26ae5ad6221d1b765c33473251c39e655e907c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We have to manually create scheduling tasks for this to work, correct?&lt;br/&gt;
Also, what is &lt;code&gt;logrotate.exe.config&lt;/code&gt; file in the root of installation directory?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>logrotate: Unable to parse test as an int32, skipping...</title><link href="https://sourceforge.net/p/logrotatewin/discussion/general/thread/f7f29aca0b/?limit=25#2b79" rel="alternate"/><published>2019-04-12T09:51:37.470000Z</published><updated>2019-04-12T09:51:37.470000Z</updated><author><name>Rahul Dankhara</name><uri>https://sourceforge.net/u/rahul29564/</uri></author><id>https://sourceforge.net196c4b75c4fd88ca377f98acef2aac4ffaa7783d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Tried same thing in cmd as admin and getting different error:&lt;/p&gt;
&lt;p&gt;C:\Program Files (x86)\Ken Salter\LogRotate&amp;gt;.\logrotate.exe -f -d -v 'C:\Program Files (x86)\Ken Salter\LogRotate\Content\logrotate.conf'&lt;br/&gt;
logrotate: Force option set to true&lt;br/&gt;
logrotate: Debug option set to true&lt;br/&gt;
logrotate: Verbose option set to true&lt;br/&gt;
logrotate: logrotate 0.0.0.18 - Copyright  (C) 2012-2016 Ken Salter&lt;br/&gt;
logrotate: Verbose option set to true&lt;br/&gt;
logrotate: 'C:\Program Adding to config files to process&lt;br/&gt;
logrotate: Files Adding to config files to process&lt;br/&gt;
logrotate: (x86)\Ken Adding to config files to process&lt;br/&gt;
logrotate: Salter\LogRotate\Content\logrotate.conf' Adding to config files to process&lt;br/&gt;
logrotate: Exception: The given path's format is not supported.&lt;br/&gt;
logrotate: StackTrace:    at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)&lt;br/&gt;
   at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)&lt;br/&gt;
   at System.IO.File.GetAttributes(String path)&lt;br/&gt;
   at logrotate.Program.ProcessConfigPath(String m_path)&lt;br/&gt;
   at logrotate.Program.Main(String[] args)&lt;/p&gt;
&lt;p&gt;C:\Program Files (x86)\Ken Salter\LogRotate&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>logrotate: Unable to parse test as an int32, skipping...</title><link href="https://sourceforge.net/p/logrotatewin/discussion/general/thread/f7f29aca0b/?limit=25#7a54" rel="alternate"/><published>2019-04-12T09:40:52.866000Z</published><updated>2019-04-12T09:40:52.866000Z</updated><author><name>Rahul Dankhara</name><uri>https://sourceforge.net/u/rahul29564/</uri></author><id>https://sourceforge.net39425aa12a63201058c3214cd34aebf865e77545</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;After changing path in ogrotate.conf as below, the int32 error went off but still it is not rotating test file.&lt;br/&gt;
...................&lt;br/&gt;
C:\logs path contains below files&lt;/p&gt;
&lt;p&gt;test.log&lt;br/&gt;
testing.log&lt;br/&gt;
......................&lt;/p&gt;
&lt;p&gt;C:\logs\test* {&lt;br/&gt;
daily&lt;br/&gt;
rotate 10&lt;br/&gt;
}&lt;/p&gt;
&lt;p&gt;....................................................&lt;br/&gt;
PS C:\Program Files (x86)\Ken Salter\LogRotate&amp;gt; .\logrotate.exe -f -v -d 'C:\Program Files (x86)\Ken Salter\LogRotate\Content\logrotate.conf'&lt;br/&gt;
logrotate: Force option set to true&lt;br/&gt;
logrotate: logrotate 0.0.0.18 - Copyright  (C) 2012-2016 Ken Salter&lt;br/&gt;
logrotate: Verbose option set to true&lt;br/&gt;
logrotate: Debug option set to true&lt;br/&gt;
logrotate: Verbose option set to true&lt;br/&gt;
logrotate: C:\Program Files (x86)\Ken Salter\LogRotate\Content\logrotate.conf Adding to config files to process&lt;br/&gt;
logrotate: Parsing configuration file C:\Program Files (x86)\Ken Salter\LogRotate\Content\logrotate.conf&lt;br/&gt;
logrotate: read line # sample logrotate configuration file&lt;br/&gt;
logrotate: Skipping comment&lt;br/&gt;
logrotate: read line&lt;br/&gt;
logrotate: read line # uncomment to enable compression of rotated log files&lt;br/&gt;
logrotate: Skipping comment&lt;br/&gt;
logrotate: read line # compress&lt;br/&gt;
logrotate: Skipping comment&lt;br/&gt;
logrotate: read line&lt;br/&gt;
logrotate: read line # this example will rotate the c:\test.log file daily and keep 5 rotations.&lt;br/&gt;
logrotate: Skipping comment&lt;br/&gt;
logrotate: read line # there is also an example prerotate script that will print the current time and the parameter passed to it (which is the path to the log file)&lt;br/&gt;
logrotate: Skipping comment&lt;br/&gt;
logrotate: read line C:\logs\test&lt;em&gt; {&lt;br/&gt;
logrotate: Processing new section&lt;br/&gt;
logrotate: Will process file path C:\logs\test&lt;/em&gt;&lt;br/&gt;
logrotate: read line daily&lt;br/&gt;
logrotate: Setting daily to True&lt;br/&gt;
logrotate: read line rotate 10&lt;br/&gt;
logrotate: Setting rotate to 10&lt;br/&gt;
logrotate: read line }&lt;br/&gt;
logrotate: read line&lt;br/&gt;
logrotate: Processing C:\logs\test*&lt;br/&gt;
logrotate: Processing C:\logs\test.log.txt&lt;br/&gt;
logrotate: Force option is set, will rotate&lt;br/&gt;
logrotate: Processing C:\logs\testing.log.txt&lt;br/&gt;
logrotate: Force option is set, will rotate&lt;br/&gt;
logrotate: Rotating file C:\logs\test.log.txt&lt;br/&gt;
logrotate: Rotate will be simulated because Debug is true&lt;br/&gt;
logrotate: Renaming C:\logs\test.log.txt to C:\logs\test.log.txt.1&lt;br/&gt;
logrotate: Compressing rotated log file C:\logs\test.log.txt.1&lt;br/&gt;
logrotate: Rotating file C:\logs\testing.log.txt&lt;br/&gt;
logrotate: Rotate will be simulated because Debug is true&lt;br/&gt;
logrotate: Renaming C:\logs\testing.log.txt to C:\logs\testing.log.txt.1&lt;br/&gt;
logrotate: Compressing rotated log file C:\logs\testing.log.txt.1&lt;br/&gt;
..............................................&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>