Questions tagged [grok]

Grok is a web framework running atop of Zope application server written in Python with aim to make Zope technology more accessible to the masses as well as speed up the development process. Exploiting convention-over-configuration paradigm, Grok uses Zope Toolkit libraries and provides building blocks for your application along with the way to tie it all together.

Grok is a web framework running atop of Zope application server written in Python with aim to make Zope technology more accessible to the masses as well as speed up the development process.

Exploiting convention-over-configuration paradigm Grok uses Zope Toolkit libraries and provides building blocks for your application along with the way to tie it all together.

Visit grok to learn more.

486 questions
2
votes
1 answer

Grok NameError on tal:attributes="action view/url"

I'm following the Grok tutorial and I'm getting an error on the tal:attributes="action view/url" portion of a POST form. I assume this plops in the URL, but I'm confused as to why I'm getting the following error. File…
dfb
  • 13,133
  • 2
  • 31
  • 52
1
vote
1 answer

Can I query Grok's ZODB instance outside the web application scope?

I have a grok-based webapp that persists data using ZODB. Can I query the object db offline i.e. from a python script that would be run on the webserver hosting the grok/paste webapp instance? And would there be any issues in doing so while the web…
citronic
  • 9,868
  • 14
  • 51
  • 74
1
vote
2 answers

Making grok views to look template from a parent directory in Plone

If I try grok.templatedir("../browser/templates") I get GrokImportError: The 'templatedir' directive can not contain path separator. What's the correct way to set five.grok template directory to an absolute path?
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
1
vote
1 answer

AWS Glue SerDe Classifier seems to be very greedy

I have log files that look like the following: 2023-08-12T13:46:54.577Z (2a25ec26-6b85-49cd-b9c5-b5455d24f71e) Usage Plan check succeeded for API Key *************************4Y01JJ and API Stage kbyw1pi8yl/production 2023-08-12T13:46:54.577Z…
1
vote
0 answers

logstash grok prase fail

here is the example log of my server: 2023-07-14 16:33:58.464 [traceId:] [http-nio-9013-exec-10] INFO com.tlx.usercenter.socket.service.WebSocketServer - websocket disconnect! i use follow grok format: grok { match => { "message" =>…
刘楠庭
  • 11
  • 1
1
vote
0 answers

Need help in creating grok pattern that works for both the following type of logs

Create a new line in the log with a grok pattern. This is the current pattern %{DATE:date} %{TIME:time} %{LOGLEVEL:log_level} %{WORD:log_type} [%{DATA:kafka_msg}] - [%{DATA:file_line}.] %{WORD:module_name} %{GREEDYDATA:msg} enter image description…
1
vote
0 answers

How to format the grok pattern parsed field value in a new line based on timestamp?

I have this log message which is filtered using grok pattern. Entire message gets displayed in a single line in the filtered output. { "message": [ "Calling com.portal.ws.service.GvpV2Service@2ad03f20 method…
code_buddy
  • 65
  • 2
  • 12
1
vote
1 answer

Cloudfront Logs - Athena - AWS Glue

I am trying to add a Grok pattern for standard cloudfront…
JoaMika
  • 1,727
  • 6
  • 32
  • 61
1
vote
1 answer

Facing grok filter issue

Response : "timestamp":"2023-04-21T06:27:06.255+00:00","status":404,"error":"Not Found","path":"/logs" Grok filter : (?%{TIMESTAMP_ISO8601})\s+%{NUMBER:response_code}\s+%{DATA:error}\s+%{DATA:path} also treid : …
Ashish Pathak
  • 827
  • 8
  • 16
1
vote
2 answers

Grok help - 2 dictionaries car colors

I've seen other more in-depth solutions to this but as I'm still learning python I want to understand my mistakes. My code as of now is: carlist = [] colour = [] while colour != '': colour = input("Car: ") if colour != '': …
splatters_
  • 13
  • 2
1
vote
0 answers

Filter specific message value in logstash

i am new to logstash. I am trying to parse log value and applying filter on value using grok. The log data is - {"log":"11:20:15|INFO|config-app: Starting_thread\n","stream":"stdout","time":"2022-12-19T11:19:15.089894627Z"} The logstash.conf…
eshita
  • 11
  • 1
1
vote
1 answer

Grok pattern/Regex to parse string with nested parenthesis

I am trying to parse out several dynamic strings via Grok/Regex that exist in log messages between (). For example (SenderPartyName below): 2021/05/23 16:01:26.094 High Messaging.Message.Delivered Id(ci1653336085475.12327434@test_te)…
nobrac
  • 372
  • 1
  • 6
  • 16
1
vote
1 answer

Logstash grok patterns testing

I have 3 grok patterns that I want to test on a single log file. How do I make sure that all my log lines are being matched? I already tried https://grokconstructor.appspot.com/do/match, which seems to only allow me to try one pattern at a time. If…
1
vote
1 answer

Need to build a grok pattern out of string

I am having a difficult time turning this into a grok regex pattern that I can use for logstash, etc 2022-05-18 11:47:32,824…
James Doe
  • 11
  • 1
1
vote
1 answer

GROK Filter Help Logstash

Hello I am new to GROK learning, I am trying to store following log in seperate fields, having a hard time writing a GROK filter to do it This is the log 01/04/2021 15:30:00.300 +03:00 - [INFO] - [w3wp/LPAPI-Last Casino/95] - Log Message…
Haider
  • 13
  • 2