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
3
votes
1 answer

Using grok to extract android log data

I'm a new user in ELK and logstash, and I'm trying to extract the following log with grok but without success. This is my log: 08-14 10:22:50.863 1419 1419 D GpsNetInitiatedHandler: location enabled :false and I wish to extract this like…
3
votes
1 answer

Grok pattern to match URIPATH with optional URIPARAM

I want to use Grok Pattern for filtering out this 172.20.20.88 - - [10/Nov/2018:23:49:31 +0700] "GET /id/profile.pl?user=285&device=Bg3tlX HTTP/1.1" 502 852 "-" "Go-http-client/2.0" "0.009" I am using COMMONAPACHELOG %{IPORHOST:clientip}…
3
votes
0 answers

How to generate standard apache log format logger python

Can anybody help with this ?? I am writing a simple script in python. What I am trying to do is logging the output from my script to log file in form of a standard apache log format. my script: >>> def examine(a): ... if a == "OK": ... …
user2156115
  • 1,169
  • 4
  • 17
  • 30
3
votes
1 answer

Utility not found when run bin/test in plone 5

In plone 5, I create an interface named IFindMathModeTexInText and register a global utility using five.grok as follow: class FindMathModeTexInText (grok.GlobalUtility): implements (IFindMathModeTexInText) def process(self, text): …
ega
  • 107
  • 8
3
votes
1 answer

Using dexterity behaviors to provide a method

I've been using a schema behavior with no problem, but I want to also have a method that provides some logic. Right now I have class IMyFoo(form.Schema): requester = schema.TextLine(title=_(u"Requestor"), required=False, …
Esoth
  • 437
  • 2
  • 9
3
votes
3 answers

web2py or grok (zope) on a big portal,

I am planning to make some big project (1 000 000 users, approximately 500 request pre second - in hot time). For performance I'm going to use no relational dbms (each request could cost lot of instructions in relational dbms like mysql) - so i…
Robert
  • 81
  • 2
3
votes
3 answers

File input not working for logstash

I get the correct output when I use stdin as an input stream. But whenever I use the file as an input, the output freezes after the following message. "Using milestone 2 input plugin 'file'. This plugin should be stable but if you see strange…
Akk
  • 406
  • 1
  • 5
  • 17
3
votes
1 answer

Named adapters with grok and Plone?

Is it possible to register named adapters with five.grok. The ZCML equivalent would be:
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
2
votes
1 answer

How do I instrument my python code?

I'm developing some web apps with the grok framework, and I want to know what the framework is doing when serving a simple page. So, what tools are out there to grab such data, and maybe, graph it?
Noe Nieto
  • 2,521
  • 2
  • 17
  • 25
2
votes
0 answers

Datadog: Remap a field from an array inside an attribute

The log has come into datadog as a JSON object and attributes have been parsed automatically. Next I want to extract the owner field from an array nested in the JSON: This syntax doesn't work does in datadog: @detail.resources[0].tags.owner { …
Josh Sharkey
  • 1,008
  • 9
  • 34
2
votes
1 answer

Match multiple fields and variable fields in grok

I'm working on a project where I have to scan some log file of error from an apache server. I'm building a grok pattern to scan these error files. At the moment, this is my pattern: \[(?%{DAY:day} %{MONTH:month} %{MONTHDAY} %{TIME}…
2
votes
1 answer

Grok pattern to remove "ms" from log string and convert to INT

first time long time. I have this log message: 2022/05/04 09:24:08 INTERESTING UpdateStatus: active: 45 waiting: 0 connections: 91 max dbcmd queue length: 3 max dbcmd response time: 19ms cmds processed: 6 nacks: 0 nresent: 0 I have this grok pattern…
Lee
  • 23
  • 2
2
votes
1 answer

Match everything that comes before a character, if there is one (Regex)

Good evening guys! I wrote a pattern that catches resource: X-ray Tracing ID : Root=%{DATA:resource} In the log excerpt below: (d9be2aec-d683-4d9b-8d3c-428f1f339416) X-ray Tracing ID : Root=1-612dd69a-4b2951db368113005fb367ce However, I am…
Dawid
  • 23
  • 3
2
votes
1 answer

Exclude Unicode symbol in Grok pattern

Is there any option to exclude Unicode symbol from line directly in grok pattern. I'm trying to read json data line by line thought AWS Glue "getSourceWithFormat" method which use grok pattern for string parsing. line in…
2
votes
0 answers

Grok Parsing a log file with nested JSON

I'm trying to use a Grok parser (inside of Datadog's Logs service) to extract the json key:values in the following log lines (dont worry, I randomized some of the values): [INFO] 2021-08-09T23:20:48.282Z 49be9ba-000c-4d90-1011-10101001 Received…
Don T Spamme
  • 199
  • 7
1
2
3
32 33