Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out_splunk: remove raw endpoint #9007

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions plugins/out_splunk/splunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,6 @@ static void cb_splunk_flush(struct flb_event_chunk *event_chunk,
flb_sds_t buf_data;
size_t resp_size;
size_t buf_size;
char *endpoint;
pmeier marked this conversation as resolved.
Show resolved Hide resolved
struct flb_splunk *ctx = out_context;
struct flb_connection *u_conn;
struct flb_http_client *c;
Expand Down Expand Up @@ -687,16 +686,8 @@ static void cb_splunk_flush(struct flb_event_chunk *event_chunk,
}
}

/* Splunk URI endpoint */
if (ctx->splunk_send_raw) {
endpoint = FLB_SPLUNK_DEFAULT_URI_RAW;
}
else {
endpoint = FLB_SPLUNK_DEFAULT_URI_EVENT;
}

/* Compose HTTP Client request */
c = flb_http_client(u_conn, FLB_HTTP_POST, endpoint,
c = flb_http_client(u_conn, FLB_HTTP_POST, FLB_SPLUNK_DEFAULT_ENDPOINT,
payload_buf, payload_size, NULL, 0, NULL, 0);

/* HTTP Response buffer size, honor value set by the user */
Expand Down
3 changes: 1 addition & 2 deletions plugins/out_splunk/splunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

#define FLB_SPLUNK_DEFAULT_HOST "127.0.0.1"
#define FLB_SPLUNK_DEFAULT_PORT 8088
#define FLB_SPLUNK_DEFAULT_URI_RAW "/services/collector/raw"
#define FLB_SPLUNK_DEFAULT_URI_EVENT "/services/collector/event"
#define FLB_SPLUNK_DEFAULT_ENDPOINT "/services/collector/event"
#define FLB_SPLUNK_DEFAULT_TIME "time"
#define FLB_SPLUNK_DEFAULT_EVENT_HOST "host"
#define FLB_SPLUNK_DEFAULT_EVENT_SOURCE "source"
Expand Down
Loading