Git Product home page Git Product logo

Comments (10)

bernd avatar bernd commented on June 12, 2024

Thank you for the report. We will try to reproduce and fix it.

from collector.

MadPB avatar MadPB commented on June 12, 2024

We may have a similar issue. We have a service that logs to a file that is rotated at midnight. The Windows 0.4.1 collector maintains an open handle on the file, and at midnight when the old log is renamed with that day's date, the handle stays open to the now old file, and doesn't re-open a new handle to the new log file.

The only "fix" is to restart the graylog collector service so it picks up the new files/opens a new handle on those. I thought I saw something in a release note about the possibility of missing a file rename operation like that, but we're definitely seeing this issue.

Java 1.8.0_60, Graylog Collector for Windows 0.4.1, Windows Server 2012 R2.

Relevant config entry:
offline-task-trace {
type = "file"
path-glob-root = "C:\OfflineTools"
path-glob-pattern = "**\trace.log"
content-splitter = "PATTERN"
content-splitter-pattern = "(ERROR|WARN|INFO)\s\d{1,4} \d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}\s"
}

The logging is from Log4Net tied into the app with this rotation method:

We're new to Graylog and it's going well in our testing so far except for this pretty big sticking point.

from collector.

tehpanta avatar tehpanta commented on June 12, 2024

Same is happening in my scenario. RedHat/AIX mostly.

Application is unable to correctly rotate logfiles and keeps logging to rotated logfile (quite a trouble honestly, because we archive rotated logs away and delete them periodically).

from collector.

GusPS avatar GusPS commented on June 12, 2024

Same problem here with W2003, Collector 0.4.1, JRE 1.7.0.
Agent and Edge Exchange Log which seems to rotate at midnight.

from collector.

Arlineas avatar Arlineas commented on June 12, 2024

Anyone find a solution ?

I have the same problem when logging dhcp log on my two DHCP server

from collector.

eduardohki avatar eduardohki commented on June 12, 2024

Same Problem here with graylog-collector 0.4.1 and Windows Server 2012 R2 with Exchange Server 2013.

from collector.

o1e9 avatar o1e9 commented on June 12, 2024

The problem remains in 0.4.2, the issue makes it difficult to collect log files from multiple applications if log file needs to be moved or re-created. I am running multiple FLEXlm daemons on Windows Server 2008R2 so have to stop graylog prior FLEXlm daemon/service restart.

from collector.

jt55401 avatar jt55401 commented on June 12, 2024

Same issue here on Windows 2008 R2. (Collector 0.4.2)

from collector.

jt55401 avatar jt55401 commented on June 12, 2024

Looks like this may not be fixed?

See the latest commit... graylog-collector is being deprecated in favor of: https://github.com/Graylog2/collector-sidecar

from collector.

joschi avatar joschi commented on June 12, 2024

@jt55401 Yes, we'll phase out the Graylog Collector. I'd recommend using nxlog or winlogbeat to collect Windows Eventlogs and nxlog or filebeat to collect files.

from collector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.