-
Notifications
You must be signed in to change notification settings - Fork 490
F/mongodb pe patches #143
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
Merged
Merged
F/mongodb pe patches #143
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… not a runtime one. Signed-off-by: Viktor Tusa <tusa@balabit.hu>
…nes. Stored messages are message which are stored in disk or memory buffer.
MongoDB server does append an _id field automatically if none present. If the incoming message already have an _id field, we pass it along to the server. References: v1 TK-44852
…re_transformation
Signed-off-by: Viktor Tusa <tusavik@gmail.com>
MongoDB dest driver tries to insert into the database three times before dropping the message. Signed-off-by: Viktor Tusa <tusavik@gmail.com>
evt_tag_value_pairs works exactly like a value_pairs_foreach, which generates a string to an EVTTAG. It can be safely used from msg_* macros without having to know if we are in debug mode or not.
… mongodb. Because it is nicer, and can be used in msg_error, too. Also log the message we try to insert into mongodb. Signed-off-by: Viktor Tusa <tusavik@gmail.com>
…ion failed. If the connections fails, we shouldn't consume a message. If flow-control is on, the queue will be held back, if it is off, the message will be dropped if the queue is full.
…fails. If value_pairs_walk fails, that means that a typecast has been failed. So the only sane thing we can do is to log this problematic message and drop it. We return with TRUE here because the destination should not go to sleep.
Via the retries() option. Signed-off-by: Viktor Tusa <tusavik@gmail.com>
Throttle is not working and not supported in MongoDB destination, so we will show a warning and set throttle back to zero.
Signed-off-by: Viktor Tusa <tusa@balabit.hu>
Signed-off-by: Viktor Tusa <tusa@balabit.hu>
…ient Signed-off-by: Budai Laszlo <lbudai@balabit.hu> Signed-off-by: Viktor Tusa <tusavik@gmail.com>
Signed-off-by: Budai Laszlo <lbudai@balabit.hu>
Signed-off-by: Budai Laszlo <lbudai@balabit.hu>
Signed-off-by: Budai Laszlo <lbudai@balabit.hu>
Hi! The "WIP: prepare_config method" commit is a cuckoo's egg, it isn't needed here. |
Boo. This error is on my part, I broke symbol versioning by the looks of it. |
Fixed on libmongo-client master. Can you redo the last patch that upgrades not to 0.1.8, but to master? While there, you can drop 50c5ab9, or replace that with the update to LMC master, so we don't have it twice in the history. |
Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
...otherwise... https://www.youtube.com/watch?v=qfResyFrqlM [ sorry :-) ] Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
kovgeri01
pushed a commit
to kovgeri01/syslog-ng
that referenced
this pull request
Aug 13, 2024
filterx: add vars() function
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.