Details

    • Type: Bug/Feature
    • Status: Resolved (View workflow)
    • Resolution: Duplicate
    • Affects Version/s: 1.1.7, 1.1.8, 1.1.9
    • Fix Version/s: None

      Description

      The FileWatch gem that is used to tail log files leaves the file opened. This causes a problem for Windows as JRuby is holding a file lock on the log file. This causes 2 issues:
      1. Rolling log files cannot roll.
      2. Loggers that open the file with exclusive locks fail to open the log file. This is causing log messages to be lost.

      I Submitted a pull request to force the FileWatch tail to close the file after each read.
      https://github.com/jordansissel/ruby-filewatch/pull/16

      The change to enable this feature would be to add a line to the batch file that runs logstash:
      >set CloseAfterRead=true

      This fix will also fix issues:
      https://logstash.jira.com/browse/LOGSTASH-578
      https://logstash.jira.com/browse/LOGSTASH-886
      https://logstash.jira.com/browse/LOGSTASH-977

      This issue affects all versions of LogStash.

        Gliffy Diagrams

          Attachments

            Issue links

              Activity

                People

                • Assignee:
                  logstash-dev Logstash Developers (Inactive)
                  Reporter:
                  thesolution ColinJ
                • Votes:
                  15 Vote for this issue
                  Watchers:
                  24 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: