-
-
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
Using simply a grok output an error #79
Comments
Could you paste your full pastash config? Which version of Loki are you running? (or is it the one above?) |
The grok filter is indeed no longer part of the default build - but that's a parallel issue - please post the loki errors and/or capture the socket traffic with |
I also suspect your target system might lack the build tools required to compile the grok module - this might cause the 2nd failure. |
I started to work with promtail to see if I can make it work and now I suspect it's the same error 400
I dont understand why this error. It's weird that I cannot ingest old logs. For the second error I am still looking. |
Am I supposed to install like the output_loki? because I dont see on npm or the in repo.
|
This is the logs when I install pastash. I dont see any reference for filters or grok |
@le-ross I must be honest i never tried running this on windows. In either case, you do not need grok, the error is elsewhere. |
I will need to install ubuntu becase I am not able to find ngrep for windows I tried to wrap the package in a docker container like this
It doesnt make sense that I keep having this filter_grok error also. are you sure it's not missing somewhere? I need that grok otherwise all my logs are insert with today's timestamp I was able to insert the logs with graylog instead of loki to see that all I am missing is the grok filter |
tried under my ubuntu session. same grok error.
|
Do you have |
Btw this still does not explain the error you're receiving you're receiving:
You forgot to run the |
Oh yeah, got distracted when I saw a image ready to use. I don't have the problem of grok with that image which is version 1.0.50 here is the log with a dummy file also attached
|
here is my docker-compose in case
|
204 is good. From the logs it looks as if they were accepted
|
manged to get ngrep with the error 400
|
it's enough to throw that error with that data
|
I get this error too. Is this resolved? |
Could you provide the steps you took to get to this point? What config are
you using?
What node version are you using?
…On Wed, Aug 2, 2023, 04:56 spady7 ***@***.***> wrote:
I get this error too. Is this resolved?
[Wed, 02 Aug 2023 09:51:09 GMT] NOTICE Starting pastash 1.0.75 [Wed, 02
Aug 2023 09:51:09 GMT] INFO Max http socket 100 [Wed, 02 Aug 2023 09:51:09
GMT] INFO Loading config file : /opt/pastash/sonus.conf [Wed, 02 Aug 2023
09:51:09 GMT] INFO File loaded, 7 urls found [Wed, 02 Aug 2023 09:51:09
GMT] INFO Loading config : 10 urls [Wed, 02 Aug 2023 09:51:09 GMT] INFO
Initializing output HEP/EEP Server [Wed, 02 Aug 2023 09:51:09 GMT] INFO
Start output to HEP udp to 127.0.0.1:9060 [Wed, 02 Aug 2023 09:51:09 GMT]
INFO Initializing filter AddHost [Wed, 02 Aug 2023 09:51:09 GMT] INFO
Initializing filter AddTimestamp [Wed, 02 Aug 2023 09:51:09 GMT] INFO
Initializing filter AddVersion [Wed, 02 Aug 2023 09:51:09 GMT] INFO
Initializing filter Multiline [Wed, 02 Aug 2023 09:51:09 GMT] INFO
Initialized multiline filter with start_line_regex: /^\[\d{4}-\d{2}-\d{2}/,
flags: Loading npm module... @pastash/filter_grok [Wed, 02 Aug 2023
09:51:09 GMT] ERROR Unable to load urls from command line [Wed, 02 Aug 2023
09:51:09 GMT] ERROR TypeError: Cannot read properties of undefined (reading
'create') at LogstashAgent.configure
***@***.***/pastash/lib/agent.js:143:21) at
LogstashAgent.<anonymous>
***@***.***/pastash/lib/agent.js:215:10) at
***@***.***/pastash/node_modules/async/dist/async.js:3096:16
at replenish
***@***.***/pastash/node_modules/async/dist/async.js:998:17)
at iterateeCallback
***@***.***/pastash/node_modules/async/dist/async.js:983:17)
at
***@***.***/pastash/node_modules/async/dist/async.js:958:16
at LogstashAgent.<anonymous>
***@***.***/pastash/lib/agent.js:265:5) at
LogstashAgent.<anonymous>
***@***.***/pastash/lib/agent.js:220:7) at
LogstashAgent.<anonymous>
***@***.***/pastash/lib/agent.js:156:9) at
FilterMultiline.<anonymous>
***@***.***/pastash/lib/lib/base_filter.js:36:5)
—
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLWWESIR5H3G5Z64T64IB3XTIP4RANCNFSM4WK6DRVA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi @Dletta i need to use "pastash" to parse logs from Sonus/Ribbon SBC. `input { filter { output { And when i try
i get errors. |
Has anyone found a solution to this problem?
|
@spady7 This may occur if your path definition is insufficient. Could you run pastash from the /usr/lib/node_modules/@pastash/pastash directory and see if it still occurs? |
@Dletta just tried, but is the same:
If i use others filters they work. For instance app_audiocodes it working. |
Hi @Dletta |
Can you share your docker compose or Dockerfile, I 'd like to try myself |
@Dletta Sure, see following: Dockerfile
Here a I used alpine node container as base. But tried also with "node:20-slim" but same issue. |
@Dletta FYI i tried making container starting from qxip's official image (https://hub.docker.com/r/qxip/pastash/tags) and i get same error.
|
Installed the app globaly and LOKI running locally
at first had this
and each time I insert logs I get
[Wed, 20 Jan 2021 16:34:15 GMT] ERROR error Wrong HTTP Post return code: 400
So I taught maybe I need to parse better each line with this :
Now I only get this error of loading module.
I dont have the easier time using that application. what I am missing
The text was updated successfully, but these errors were encountered: