Skip to content

Commit

Permalink
docs: add example of a ClickHouse sink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Nov 6, 2024
1 parent 64e6ee3 commit dd22e01
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions charts/harmony-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -476,29 +476,22 @@ vector:
# xapi_openedx_demo:
# type: remap
# inputs:
# - kubernetes_tutor_logs
# source: >
# - logs_openedx_demo
# drop_on_error: true
# drop_on_abort: true
# source: |-
# parsed, err_regex = parse_regex(.message, r'^.* \[xapi_tracking\] [^{}]*
# (?P<tracking_message>\{.*\})$')

# if err_regex != null {
# abort
# }

# message, err = strip_whitespace(parsed.tracking_message)


# parsed_json, err_json = parse_json(parsed.tracking_message)


# if err_json != null {
# log("Unable to parse JSON from xapi tracking log message: " + err_json, level: "error")
# abort
# }


# time, err_timestamp = parse_timestamp(parsed_json.timestamp, "%+")

# if err_timestamp != null {
# log("Unable to parse timestamp from tracking log 'time' field: " + err_timestamp, level: "warn")
# time, err_timestamp = parse_timestamp(parsed_json.timestamp, "%+")
Expand All @@ -507,13 +500,10 @@ vector:
# abort
# }
# }

# event_id = parsed_json.id

# . = {"event_id": event_id, "emission_time": format_timestamp!(time,
# format: "%+"), "event": encode_json(parsed_json)}
# drop_on_error: true
# drop_on_abort: true


sinks:
logs_to_s3:
Expand Down

0 comments on commit dd22e01

Please sign in to comment.