Skip to content
Open
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
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ if(FLB_ALL)
set(FLB_OUT_NULL 1)
set(FLB_OUT_PLOT 1)
set(FLB_OUT_FILE 1)
set(FLB_OUT_LOGROTATE 1)
set(FLB_OUT_RETRY 1)
set(FLB_OUT_TD 1)
set(FLB_OUT_STDOUT 1)
Expand Down
1 change: 1 addition & 0 deletions cmake/plugins_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ DEFINE_OPTION(FLB_OUT_DATADOG "Enable DataDog output plugin"
DEFINE_OPTION(FLB_OUT_ES "Enable Elasticsearch output plugin" ON)
DEFINE_OPTION(FLB_OUT_EXIT "Enable Exit output plugin" ON)
DEFINE_OPTION(FLB_OUT_FILE "Enable file output plugin" ON)
DEFINE_OPTION(FLB_OUT_LOGROTATE "Enable logrotate output plugin" ON)
DEFINE_OPTION(FLB_OUT_FLOWCOUNTER "Enable flowcount output plugin" ON)
DEFINE_OPTION(FLB_OUT_FORWARD "Enable Forward output plugin" ON)
DEFINE_OPTION(FLB_OUT_GELF "Enable GELF output plugin" ON)
Expand Down
1 change: 1 addition & 0 deletions cmake/windows-setup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ if(FLB_WINDOWS_DEFAULTS)
set(FLB_OUT_NATS No)
set(FLB_OUT_PLOT No)
set(FLB_OUT_FILE Yes)
set(FLB_OUT_LOGROTATE Yes)
set(FLB_OUT_TD No)
set(FLB_OUT_RETRY No)
set(FLB_OUT_SPLUNK Yes)
Expand Down
21 changes: 21 additions & 0 deletions conf/fluent-bit-logrotate.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[SERVICE]
Flush 1
Log_Level info
Parsers_File parsers.conf

[INPUT]
Name dummy
Tag test.logrotate
Dummy {"message": "test log message", "level": "info"}
Rate 10

[OUTPUT]
Name logrotate
Match test.logrotate
Path /tmp/logs
File test.log
Format json
Max_Size 10M
Max_Files 5
Gzip On
Mkdir On
13 changes: 13 additions & 0 deletions include/fluent-bit/flb_aws_credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
/* 5 second timeout for credential related http requests */
#define FLB_AWS_CREDENTIAL_NET_TIMEOUT 5

/* IoT Credentials Environment Variables */
#define AWS_IOT_KEY_FILE "AWS_IOT_KEY_FILE"
#define AWS_IOT_CERT_FILE "AWS_IOT_CERT_FILE"
#define AWS_IOT_CA_CERT_FILE "AWS_IOT_CA_CERT_FILE"
#define AWS_IOT_CREDENTIALS_ENDPOINT "AWS_IOT_CREDENTIALS_ENDPOINT"
#define AWS_IOT_THING_NAME "AWS_IOT_THING_NAME"
#define AWS_IOT_ROLE_ALIAS "AWS_IOT_ROLE_ALIAS"

/*
* A structure that wraps the sensitive data needed to sign an AWS request
*/
Expand Down Expand Up @@ -225,6 +233,11 @@ struct flb_aws_provider *flb_eks_provider_create(struct flb_config *config,
flb_aws_client_generator
*generator);

/*
* IoT Provider
*/
struct flb_aws_provider *flb_iot_provider_create(struct flb_config *config,
struct flb_aws_client_generator *generator);

/*
* STS Assume Role Provider.
Expand Down
1 change: 1 addition & 0 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ REGISTER_OUT_PLUGIN("out_datadog")
REGISTER_OUT_PLUGIN("out_es")
REGISTER_OUT_PLUGIN("out_exit")
REGISTER_OUT_PLUGIN("out_file")
REGISTER_OUT_PLUGIN("out_logrotate")
REGISTER_OUT_PLUGIN("out_forward")
REGISTER_OUT_PLUGIN("out_http")
REGISTER_OUT_PLUGIN("out_influxdb")
Expand Down
4 changes: 4 additions & 0 deletions plugins/out_logrotate/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set(src
logrotate.c)

FLB_PLUGIN(out_logrotate "${src}" "")
Loading