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
1
vote
2 answers

How I can solve the read too much input problem in Python

Here is my question: You've devised a new twist on the traditional 'What number am I thinking of?' game to help your cousins learn their 7 times tables! Write a game that asks the user to guess the number you are thinking of. (For this game, the…
congdanh1594
  • 67
  • 1
  • 7
1
vote
1 answer

datadog facet path with special symbols

I have an index created on the log and the paths have special character : for example: @params.rs:orgId @params.rs:format Sample URL: 10.32.45.56 - user [12/Sep/2020:06:25:51 -0400] "GET…
1
vote
1 answer

Telegraf grok patten for pushing logs

I am trying to import tomcat catalina logs line by line, I am using telegraf tail plugin with a grok pattern. telegraf.conf [[inputs.tail]] ## file(s) to tail: files = ["/u/app/tc/TOMCAT/instances/T/logs/catalina.log"] from_beginning = false …
Kris
  • 33
  • 1
  • 1
  • 6
1
vote
1 answer

Grok and MySQL - how to set a connection?

According to this doc: http://grok.zope.org/documentation/how-to/grok-orm-with-storm when i want connect to database (sqlite) i should set something like thIS: with correct path TO MY DB. How to set a connection with mysql?
pmoniq
  • 1,883
  • 2
  • 19
  • 22
1
vote
2 answers

Grok learning: Letters in the letterbox

I am trying to write a code that will let a user input a name, then read a file and show how much mail that person has. file called mail.txt Jane Fairfax,Letter Frank Churchill,Letter Emma Woodhouse,Letter Frank Churchill,Letter Harriet…
RJ_828
  • 17
  • 2
1
vote
1 answer

Cloudwatch insight grok extract json as field

I am trying to extra a json field which can be either null or array. example logs is; 04 Jun 2020 09:48:00,741 [32m[INFO] [m 4277a4fa-13fe-49f9-8348-9c515c988481 Class1: Method1: {"property1":"property1Value","property2":["string1", "string2"] ,…
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
1
vote
2 answers

How do I get the code to count how many times specific words occur?

This is from the grok learning website for favorite dessert. I am not sure how to get it to add how many of the votes occured. votes = {} msg = input("Name:vote ") while msg: name, vote = msg.split(":") if vote not in votes: votes[vote] =…
R white
  • 21
  • 1
1
vote
2 answers

RegEx - extracting text between phrases using GROK

I'm trying to using RegEx to capture some information between two 'tags'. Example: Some text and some more text Error message: http 404 not found Procedures: some text some text What I need is to analyse this entire field, find the phrases "Error…
1
vote
1 answer

Changed/stored pixel value won't brighten output image (using PIL import with grok learning python hw)?

I'm stuck with this grok learning question(python version). I'm supposed to change the pixel value of an image to make it brighter based on the file the user inputs. I've been stuck on this for over a week now going through various iterations of…
1
vote
1 answer

Get date-time, date and time separately in logstash using grok

Input: 2018-11-28 10:22:29 Expected json output: { "DateandTime": "2018-11-28 10:22:29", "Date": "2018-11-28", "Time": "10:22:29" } Grok-pattern: ??
Karthik
  • 13
  • 4
1
vote
2 answers

Simple GROK pattern for JAVA

Its weird that GROK pattern is not parsing the string : org.dozer.config.GlobalSettings.loadGlobalSettings %{JAVACLASS:class}\.%{JAVAMETHOD:method} I see compile error. Please suggest.
Raghuveer
  • 2,859
  • 7
  • 34
  • 66
1
vote
1 answer

Sending JMeter CSV results to InfluxDB using Logparser Input Plugin

In order to have JMeter live results into I'm trying to parse JMeter CSV result file that has following…
Loc Ann
  • 455
  • 6
  • 24
1
vote
0 answers

Grok pattern assistance

Hi i'm in need of some serious help, I have logs that i wish to Parse using GROK but the problem i'm having is that they are not always consistent in content or spacing here are some obfuscated examples. title_access_log:ipaddress1, ipaddress2,…
1
vote
1 answer

Parsing data with grok filter on logstash

I'm having problems using grok filter on logstash. I have this log: 83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] And I want to parse the IP and the date. I have the code below but I'm getting no matches. ^%{IPV4:req_id} - -…
SLFl
  • 193
  • 1
  • 2
  • 13
1
vote
2 answers

Grok filter for a time counter HH:MM

I'm quite new to ELK and Grok-filtering, and I'm struggling with parsing this particular pattern in my grok filter. I've used the grok debugger to try and solve this, but although I like the tool, I just get confused by the custom patterns.…
Vandalf
  • 103
  • 1
  • 9