<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Discussion</title><link href="https://sourceforge.net/p/logrotatewin/discussion/" rel="alternate"/><link href="https://sourceforge.net/p/logrotatewin/discussion/feed.atom" rel="self"/><id>https://sourceforge.net/p/logrotatewin/discussion/</id><updated>2024-11-11T08:54:15.134000Z</updated><subtitle>Recent posts to Discussion</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>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>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><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#9fef" rel="alternate"/><published>2019-04-12T09:08:12.302000Z</published><updated>2019-04-12T09:08:12.302000Z</updated><author><name>Rahul Dankhara</name><uri>https://sourceforge.net/u/rahul29564/</uri></author><id>https://sourceforge.net7c924dcb66d8378f304b5684832d0847ac2b3cb9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Getting error as above.&lt;/p&gt;
&lt;p&gt;Here is my logrotate.conf file.&lt;br/&gt;
...................................................&lt;br/&gt;
C:\logs\test.log {&lt;br/&gt;
daily&lt;br/&gt;
rotate 10&lt;br/&gt;
}&lt;br/&gt;
...................................................&lt;br/&gt;
Output of my command:&lt;/p&gt;
&lt;p&gt;.\logrotate.exe -f -v -d 'C:\Program Files (x86)\Ken Salter\LogRotate\Content\logrotate.conf'&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.log {&lt;br/&gt;
logrotate: Processing new section&lt;br/&gt;
logrotate: Will process file path C:\logs\test.log&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.log&lt;br/&gt;
logrotate: Force option is set, will rotate&lt;br/&gt;
logrotate: Rotating file C:\logs\test.log&lt;br/&gt;
logrotate: Rotate will be simulated because Debug is true&lt;br/&gt;
logrotate: Examining filename test.log.txt&lt;br/&gt;
logrotate: Unable to parse test as an int32, skipping...&lt;br/&gt;
logrotate: Renaming C:\logs\test.log to C:\logs\test.log.1&lt;br/&gt;
logrotate: Compressing rotated log file C:\logs\test.log.1&lt;br/&gt;
PS C:\Program Files (x86)\Ken Salter\LogRotate&amp;gt;&lt;br/&gt;
.......................................................&lt;/p&gt;
&lt;p&gt;Can you please help?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Cannot Reach log files under C:/Windows/System32</title><link href="https://sourceforge.net/p/logrotatewin/discussion/general/thread/da426957c0/?limit=25#83bf" rel="alternate"/><published>2019-02-22T20:10:04.445000Z</published><updated>2019-02-22T20:10:04.445000Z</updated><author><name>Bill Stewart</name><uri>https://sourceforge.net/u/abqbill/</uri></author><id>https://sourceforge.net6eed5b7f88753b0bcc4230c9431469cc952a8c47</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Executable is 32-bit, so it's looking in SysWOW64.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Trying to ensure the original file can keep receiving packets, while periodically writing out to rotated logs?</title><link href="https://sourceforge.net/p/logrotatewin/discussion/general/thread/8ef7d3806d/?limit=25#5fbb" rel="alternate"/><published>2019-01-11T01:42:56.105000Z</published><updated>2019-01-11T01:42:56.105000Z</updated><author><name>Don</name><uri>https://sourceforge.net/u/sorcforg-555/</uri></author><id>https://sourceforge.net5c97ebed9730540befb7915a77c46386d0a29b56</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a Snort log file that has to remain open, while it takes and copies off 1M files for retrieval and analysis.&lt;br/&gt;
The 1M (1MB) test file size is to ensure that I can keep logging continues and we don't lose any information or&lt;br/&gt;
payload.&lt;/p&gt;
&lt;p&gt;One option is to create new file instances, while keeping the original instances.  The file instances would be unique, with the extensions being generated, based on a (clock) second count.  The new file creation second&lt;br/&gt;
could be 0, all the way up to 86400, so could be yyyy-mm-dd-sssss.  &lt;/p&gt;
&lt;p&gt;The important thing is not to lose any information throughout the daily process.&lt;/p&gt;
&lt;p&gt;I have been looking at copy, copy, truncate, and create options.&lt;br/&gt;
Command line arguments, as well as configuration file modifications would be the approach.&lt;br/&gt;
I am looking for helpful recommendations.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>