-
-
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
Filter GROK not working in container env. #234
Comments
The Grok filter was never moved into a plugin. I just ran a standard test and it seems to pass using an npm installed version.
Could you confirm this is the case when you run using an npm installed version? |
Hi @lmangani
I think pastash@1.0.82 is latest. |
The official images are right here on github: https://github.com/sipcapture/paStash/pkgs/container/pastash |
Ok, so the same I'am using.
and install-global-packages-alpine.sh :
|
I see the issue. Oniguruma won't build without build tools. Working on a solution. |
@spady7 could you try again with |
@lmangani seams to work:
If I want to build my own image, like Dockerfile posted before, what Have I to add to get Oniguruma compiled? |
Please refer to the updated Dockerfile |
@lmangani If try to use external plugin, as loki (installed with |
@spady7 i don't understand the report and the module clearly exists on npm so if you want provide the Dockerfile and we can take a look. |
@lmangani sure. Following what I've done and errors. Used Dockerfile:
packajes.json (modified so plugin app_audiocodes and output_loki are installed):
here my conf file:
So when I start container I get following error:
but loki module is installed:
What Am I wrong? Regards |
That's a very convoluted way. Plugins must be installed as global. Just install them in the final container.
|
Already done/tested, but same error:
and after that:
Same error |
I suspect this is the problem.
I have the plugin globally, but there is no "pastash". |
Yes and no. It shouldn't matter but it seems indeed the global path somehow is not matching what node expects on module imports from the code. Perhaps you can use this approach: # PaStash Docker Builder
FROM ghcr.io/sipcapture/pastash:latest
RUN npm install -g @pastash/pastash @pastash/output_loki @pastash/filter_app_audiocodes
RUN mkdir -p /config
EXPOSE 9999/tcp 514/udp 9999/udp 514/tcp
CMD [ "bin/pastash", "--config_dir", "/config" ]
|
Thank you @lmangani for your help. Dockerfile
and install-global-packages.sh
and finally good logs ;-)
|
Glad you got it working the way you wanted 👍 |
Hi,
I have a problem when I try to use the "grok" filter. From what I read, if I understand correctly, it was part of the pastash installation. Then it was moved as an additional filter.
If I try to install it I get the following error:
If I try to start a configuration that uses grok, at startup I get the following error:
Can you help me?
Regards
The text was updated successfully, but these errors were encountered: