-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Ingate Plugin to enable syslog -> HEP for Ingate firmwares. #93
Conversation
e854cbe
to
829303d
Compare
Thank you Paul @systemcrash for this wonderful, full round contribution! |
Q: Any reason this should not be a plugin rather than a native module? Most optional parsers are published as plugins. |
I wrote it two years ago while everything was like that. I tested it with master and it still works fine. Are there any important things I should be aware of to make it as a plugin? Or is it just a question of changing folders? I tried just changing folders and got some weird stackdumps>
🤷 changed also header to:
which seems to be the source of the crash. |
It's a TINY bit more involved than just changing folders, but really just about importing the pastash base filter.
|
I guess it should be - but... same crash with those imports (whether or not I move the js to plugins from lib/filter). I've been comparing to other plugins - some of the docs say I should install them - but I |
No problem! I can give this a try this weekend, thanks again for contributing this back!! |
Should we just mash it in and you try to pluginify it? |
0d2ffca
to
029ae3a
Compare
Did you manage to give it a try? |
@systemcrash more or less yeah, but things got busy - please keep this PR open and I'll share a gist - would still like for you to be able to PR it since its your work :) |
Adds filter_app_ingate.js and an example conf for TCP and UDP.
Sooner the better :) but no pressure. Mainly curious what plugins mandate more than the old structure. |
Did it get messy? 🍰 |
@systemcrash you know how we do :) I don't want to take credit for this, so just opened/closed to share what I thought would work in https://github.com/sipcapture/paStash/pull/96/files (I assume this is the same as you were doing, the only issue was the missing global regex? also ignore the mqtt patch clearly was there by mistake) |
Any hints on where the missing global regex was? I try to put in place your changes, and just boom same crash. |
All plugins are the same really - is this crashing with |
As above |
To actually check this as it would work once released, you would have to "plant" this in your global node_modules path alongside @pastash/pastash, ie |
I'm building an image via It's the same result whichever But it works as a core app. Edit: maybe something from Dockerfile is missing. But basically, I don't know how to do
|
Welp, I'm OK with this being a plugin, but I can't get paStash to work with any plugin in the container environment without a bit of extra guidance. It seems some special sauce to get those environments working automatically is necessary. |
Hey @systemcrash I promise to dedicate this some time asap but you are right, plugins are really hard to test before they are published to npm unless you manually "simulate" an npm global install by copying them into the expected path - will fix! |
Ok - thanks. I consider this low prio; it's not like people are screaming for syslog handling on older Ingate firmwares. But if 'simulating' manually is the only way to get paStash working with its own plugins.... |
Adds filter_app_ingate.js and an example conf for TCP and UDP.