Skip to content
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

Agent can send too large of an event submission payload that is rejected by the server #248

Closed
jasonish opened this issue Feb 13, 2023 · 3 comments
Labels
Milestone

Comments

@jasonish
Copy link
Owner

No description provided.

@jasonish jasonish added this to the 0.17.0 milestone Feb 13, 2023
@malexe3169
Copy link

i've had this bug with one of my setup so far, and it generated a HUGE amount of bandwidth. in fact it maxed out the network. and no new event saved in the server once it is happening.

Is there a way to bypass it ?

@jasonish
Copy link
Owner Author

jasonish commented Mar 2, 2023

Unfortunately no way to get around this in the current release. The master branch has a fix though. You have to update the agent and the server. The server has increased its input size to 32mb, and the client will send a maximum size of 16mb. In practice the size is actually much smaller, but Suricata can generate some extremely large HTTP payloads in the eve.json which I found is the usual cause for this to start happening. Anyways, I force "push" events at a certain size now if that happens before either the timeout or event count limit is reached.

If you use Elasticsearch, you can update to the development releases without risk. I'll probably make these real releases very soon just because of this.

If using SQLite there is a schema migration that likely breaks backward compatibility.

@jasonish
Copy link
Owner Author

jasonish commented Mar 3, 2023

Already fixed in main branch which will become 0.17.0.

@jasonish jasonish closed this as completed Mar 3, 2023
@jasonish jasonish added the bug label Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants