Parsing apache access and error logs and inserting values in clickhouse #7772
-
Hi, since two weeks now I am struggling with the following task: In whole I'd like to do the following:
I also will need a second sink for error logs - but as the sink for access logs does not work yet I left this out yet. All this does not work. I do get a sink error:
I assume that step 4 is wrong but I have no idea how to do it the right way. For the parsing part I also tried this one:
This does work so far that values are inserted in clickhouse - but only the parsed parts of the message field not the contents of other fields (uuid, appname, source_ip). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
I expect you'll want to merge the parsed log event. The first config you used set the So, I think you should either use the
or
|
Beta Was this translation helpful? Give feedback.
I expect you'll want to merge the parsed log event.
The first config you used set the
.message
field to the parsed results (an object), and the second overwrote the entire event (".
") with the parsed results.So, I think you should either use the
merge
function, or an object merge assignment (example here) like so:or