- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Grok Patterns/Expressions for capturing comma separated key=value pairs in Nifi
- Labels:
-
Apache NiFi
Created ‎02-07-2021 03:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
I am newbie in Grok Expressions and need some help with the same in Nifi.
I am trying to capture key=value pairs of log messages coming from Kafka using Grok Expressions in Nifi using the ExtractGrok Processor or the GrokReader Controller service. Eventually all the keys are the column names in a table and their corresponding values will be in fact the values of the same columns in the same table.
Here is how a sample message looks like.
Field1=value1, Field2 = value2,......................................................
Any help from anyone would be appreciated. Thanks
@mburgess
@bbende
Created ‎02-08-2021 07:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Grok is Grok.
Find Grok expressions that work for you and use a grok tester
https://stackoverflow.com/questions/38462630/logstash-grok-filter-key-value-pairs
http://grokconstructor.appspot.com/do/match#result
