Skip to content

Commit

Permalink
add orgId header to irule (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
sohitgore authored Jan 16, 2025
1 parent b8848c3 commit f1c924c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/artifacts/scripts/levo-irule.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ set static::capturable_content_types {json xml x-www-form-urlencoded}
# Levo.ai's Collector details
set static::collector_host_ip "<collector-host-ip>"
set static::collector_host_port "<collector-host-port>"
set static::organization_id "<levoai-organization-id>"
# Do not modify
set static::collector_uri "/v1/f5-ltm-logs"

Expand Down Expand Up @@ -132,6 +133,7 @@ when HTTP_RESPONSE {
# Prepare an HTTP POST request
set http_request "POST ${static::collector_uri} HTTP/1.1\r\n"
append http_request "Host: ${static::collector_host_ip}\r\n"
append http_request "x-levo-organization-id: ${static::organization_id}\r\n"
append http_request "Content-Type: application/json\r\n"


Expand Down

0 comments on commit f1c924c

Please sign in to comment.