File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ Make sure that the `fluentbit` user can connect to the `fluentbit` database on t
5656| ` Password ` | Password of PostgreSQL username | - |
5757| ` Database ` | Database name to connect to | - \( current user\) |
5858| ` Table ` | Table name where to store data | - |
59+ | ` Connection_Options ` | Specifies any valid [ PostgreSQL connection options] ( https://www.postgresql.org/docs/devel/libpq-connect.html#LIBPQ-CONNECT-OPTIONS ) | - |
5960| ` Timestamp_Key ` | Key in the JSON object containing the record timestamp | date |
6061| ` Async ` | Define if we will use async or sync connections | false |
6162| ` min_pool_size ` | Minimum number of connection in async mode | 1 |
@@ -74,15 +75,16 @@ In your main configuration file add the following section:
7475
7576``` text
7677[OUTPUT]
77- Name pgsql
78- Match *
79- Host 172.17.0.2
80- Port 5432
81- User fluentbit
82- Password YourCrazySecurePassword
83- Database fluentbit
84- Table fluentbit
85- Timestamp_Key ts
78+ Name pgsql
79+ Match *
80+ Host 172.17.0.2
81+ Port 5432
82+ User fluentbit
83+ Password YourCrazySecurePassword
84+ Database fluentbit
85+ Table fluentbit
86+ Connection_Options -c statement_timeout=0
87+ Timestamp_Key ts
8688```
8789
8890## The output table
You can’t perform that action at this time.
0 commit comments