Giter Site home page Giter Site logo

the inputfile problem about gogstash HOT 9 OPEN

tsaikd avatar tsaikd commented on August 13, 2024
the inputfile problem

from gogstash.

Comments (9)

tsaikd avatar tsaikd commented on August 13, 2024

thx, please check 32f2b15 commit work or not

from gogstash.

R7R8 avatar R7R8 commented on August 13, 2024

Thank you for your response.I will check.

from gogstash.

R7R8 avatar R7R8 commented on August 13, 2024

It seems 32f2b15 commit can solve a part of problem, but sometimes it may still fail.
The situation failed is that futil.IsExist(fpath) is true, but filepath.EvalSymlinks(fpath)can not return.

Maybe we should take restricted control to check if the fpath is ready.

from gogstash.

tsaikd avatar tsaikd commented on August 13, 2024

How about 0253f9f ? I add one more checking before filepath.EvalSymlinks(fpath).

from gogstash.

R7R8 avatar R7R8 commented on August 13, 2024

It seems that you put the new codes in the wrong place.
filepath.EvalSymlinks(fpath) fails in the function waitWatchEvent , not in the function Start

from gogstash.

R7R8 avatar R7R8 commented on August 13, 2024

Today I remove the code filepath.EvalSymlinks(fpath) in the function waitWatchEvent , then the application goes well. So I can ensure that the problem happens in filepath.EvalSymlinks(fpath).

from gogstash.

tsaikd avatar tsaikd commented on August 13, 2024

OK, I use a wrap function for all filepath.EvalSymlinks(fpath) in 8360d5a .

from gogstash.

R7R8 avatar R7R8 commented on August 13, 2024

I have two machines to test gogstash. Tomcat logs rotate one hour in one, one minute in the other.
The former goes well, but the latter still has problem. The problem is still that filepath.EvalSymlinks(fpath) can not return

from gogstash.

R7R8 avatar R7R8 commented on August 13, 2024

Sometimes filepath.EvalSymlinks(fpath) fails like this:
Error: Get symlinks failed: ; lstat /XXX/XXX/XXX/localhost_access_log.log: no such file or directory

from gogstash.

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.