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
db-parser prefix() support #4133
Conversation
No news file has been detected. Please write one, if applicable. |
I'm using it in a way that is close to the original idea. When I extract fields from the message I use a prefix so I can more easily map all of the extracted fields into a destination format ".fields.*" is great when I don't know what the fields will be but I need to map them to json in a destination format |
b4bbec2
to
7f37297
Compare
This is now pretty much complete. Tests are running locally and now in GitHub CI. Let's see if it turns green. |
7f37297
to
db12e33
Compare
Looks green |
@bazsi can this be merged? |
db12e33
to
d872002
Compare
removed WIP, rebased and added news file. I am trying to get some reviews so this can be merged. In the meantime can you perhaps test this if it works for you? The CI produces a set of binaries, so you don't have to compile it yourself. Thanks |
@bazsi sure how do I get bits from a PR? |
The current run is here
https://github.com/syslog-ng/syslog-ng/actions/runs/3142427727
It is built by the "packages" github action for every PR. You will find the
packages among the artifacts, for every distro built.
…On Wed, Sep 28, 2022, 14:18 Ryan Faircloth ***@***.***> wrote:
@bazsi <https://github.com/bazsi> sure how do I get bits from a PR?
—
Reply to this email directly, view it on GitHub
<#4133 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFOK5RYS76L4HGYCSQGMJLWAQZRJANCNFSM6AAAAAAQMIYNJQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Strange the objects are not downloadable must be a github issue I can try again in a bit |
@bazsi I was able to download the images my current dev machine is now an apple with M1 I was unable to use the rpm the binary RPMs are x86_64 |
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Remove the duplicated check for stat(db-file). Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
This allows us to get rid of the use of template->name in this instance. Also it improves performance as the name-value pair handle is resolved in init time, instead of at every match. Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
…arrays Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
d872002
to
1b63233
Compare
rebased against current master |
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
This intends to fix #4130
@ryanfaircloth the original idea behind db-parser() was to be the "global" parser for any kind of data. For that reason, I kind of expected all name-value pairs to be specified right within the pattern database. It kind of failed in that mission, today I view db-parser() as a useful alternative to regexps, because it is MUCH faster. But in this role you are right, prefix() would make sense.
These are just a few preparatory patches, but I wanted to submit them so 1) you see there's progress, 2) I can get feedback via the automatic tests.
In the meanwhile, could you please describe your use-case how you'd apply db-parser() to it? It would be useful to learn from. Thanks.