-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to save data for plugin storage under antivirus solution #57
Comments
Are you running the td-agent as admin? It's required if your are getting logs from channels like "Security" |
@flurreN I haven't changed the |
@flurreN I have changed the service to login as local admin and no change. Still seeing the errors above and now that you mention the |
I manage to replicate your issue by denying write permission for Can you double check that you are not denying any |
What is interesting in this is that i see the timestamp of the |
I also managed to replicate the issue by having it run as a service and from the td-agent command promt at the same time. I guess they are both trying to access it by the same time, do you think you running anything in the background? |
Its also running 3x Ruby interpeter for me so that should be fine Try storing with a path
|
@flurreN tried that config and am still seeing the error:
|
@nmaludy Also you should use in_windows_eventlog2 it has more option and will replace |
@flurreN i tried your suggestion of
I copy/pasted the config snippet from the link you sent me. |
Fixed that error by deleting the old |
Did you try to run the config with the td-agent command promt as admin (not as a service)? |
@flurreN No change running it directly from the Also with the |
On the
|
@flurreN So, switching to However, back to my original issue, still seeing errors in the logs related to renaming the temporary storage file:
|
For anyone else out there watching here is my working config:
|
Just an update on this ticket, it looks like it was our Anti-Virus agent that was causing the issue. I worked with our security team to disable the AV agent on this host temporarily and the problem went away. Looks like the AV agent was "grabbing" the the I haven't figured out why the rename DOES eventually succeed, but turning off AV resolved this. Maybe there is another way we can operate on Windows to prevent this scenario in the future? |
@nmaludy Interesting and it makes sense actually. Im curious, which AV are you using? I agree with you. The storage code is in this repo https://github.com/fluent/fluentd/ and I saw something similar in this issue fluent/fluentd#2446 |
When Windows grubs files, they cannot be renamed eventually an administrator. This is because Windows requests greater than SYSTEM permission (It is strange and impossible permission!) to handle other processes handling files. Yeah, disabling AV agent should be reasonable but a bit of dangerous. |
Hello. Is there are any updates on this? |
@cosmo0920 @ashie is there any update on this issue? |
@kashok7474 Please share your configuration and circumstances. Is the same for the comment? If not, could you post your configuration? Thanks. |
I've run into this same issue and created a ticket under Fluentd (should have been here for the plugin which I now know). Details here: |
Hello, i'm running fluentd (
1.10.2
) using td-agent (3.7.1
) on Windows 2016My FluentD config looks like:
And i'm seeing the following errors coming through on the logging stream:
I checked and can see that this directory does exist and the file
C:/opt/td-agent/worker0/windows_eventlog/storage.json
is created and has the following contents:Any ideas why i might be getting a
permission denied
error? It appears that the service is running as System:Not sure what else to check, any thoughts?
The text was updated successfully, but these errors were encountered: