You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pipeline/outputs/postgresql.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,11 @@ According to the parameters set in the configuration file, the plugin creates th
12
12
13
13
{% hint style="info" %}
14
14
15
-
If you're not familiar with how PostgreSQL's users and grants system works, the links in the [References](#references) section at might be helpful.
15
+
If you're not familiar with how PostgreSQL's users and grants system works, the links in the [References](#references) section might be helpful.
16
16
17
17
{% endhint %}
18
18
19
-
A typical installation normally consists of a self-contained database for Fluent Bit in which you can store the output of one or more pipelines. You can store them in the same table, or in separate tables, or even in separate databases based on several factors, including workload, scalability, data protection and security.
19
+
A typical installation consists of a self-contained database for Fluent Bit in which you can store the output of one or more pipelines. You can store them in the same table, or in separate tables, or even in separate databases based on several factors, including workload, scalability, data protection, and security.
20
20
21
21
This example uses a single table called `fluentbit` in a database called `fluentbit`, owned by the user `fluentbit`. In your environment, use names appropriate to your needs. For security reasons, don't use the `postgres` user which has `SUPERUSER` privileges.
22
22
@@ -60,7 +60,7 @@ This plugin supports the following parameters:
|`Password`| Password of PostgreSQL username. |`-`|
63
-
|`Database`| Database name to connect to. |`- (current user)`|
63
+
|`Database`| Database name to connect to. |`- (current user)`|
64
64
|`Table`| Table name where to store data. |`-`|
65
65
|`Connection_Options`| Specifies any valid [PostgreSQL connection options](https://www.postgresql.org/docs/devel/libpq-connect.html#LIBPQ-CONNECT-OPTIONS). |`-`|
66
66
|`Timestamp_Key`| Key in the JSON object containing the record timestamp. |`date`|
@@ -129,11 +129,11 @@ The output plugin automatically creates a table with the name specified by the `
129
129
130
130
The timestamp doesn't contain any information about the time zone, and it's therefore referred to the time zone used by the connection to PostgreSQL (`timezone` setting).
131
131
132
-
For more information on the `JSONB` data type in PostgreSQL, refer to the [JSON types](https://www.postgresql.org/docs/current/datatype-json.html) page in the official documentation. You can find instructions on how to index or query the objects (including `jsonpath` introduced in PostgreSQL 12).
132
+
For more information about the `JSONB` data type in PostgreSQL, refer to the [JSON types](https://www.postgresql.org/docs/current/datatype-json.html) page in the official documentation. You can find instructions on how to index or query the objects (including `jsonpath` introduced in PostgreSQL 12).
133
133
134
134
## Scalability
135
135
136
-
PostgreSQL includes support for declarative partitioning. To improve vertical scalability of the database, you can partition your tables on time ranges, such as on a monthly basis. PostgreSQL supports also sub-partitions, allowing you to partition your records by hash and default partitions.
136
+
PostgreSQL includes support for declarative partitioning. To improve vertical scalability of the database, you can partition your tables on time ranges, such as on a monthly basis. PostgreSQL supports also sub-partitions, which let you partition your records by hash and default partitions.
137
137
138
138
For more information on horizontal partitioning in PostgreSQL, refer to the [Table partitioning](https://www.postgresql.org/docs/current/ddl-partitioning.html) page in the official documentation.
139
139
@@ -143,11 +143,11 @@ Choose the latest major version of PostgreSQL if you're starting now.
143
143
144
144
PostgreSQL is a powerful and extensible database engine. More expert users can take advantage of `BEFORE INSERT` triggers on the main table and reroute records on normalised tables, depending on tags and content of the actual JSON objects.
145
145
146
-
For example, you can use Fluent Bit to send HTTP log records to the `landing` table defined in the configuration file. This table contains a `BEFORE INSERT` trigger (a function in `plpgsql` language) that normalizes the content of the JSON object and that inserts the record in another table (with its own structure and partitioning model). This kind of trigger lets you discard the record from the landing table by returning `NULL`.
146
+
For example, you can use Fluent Bit to send HTTP log records to the `landing` table defined in the configuration file. This table contains a `BEFORE INSERT` trigger (a function in `plpgsql` language) that normalizes the content of the JSON object and that inserts the record in another table (with its own structure and partitioning model). This kind of trigger lets you discard the record from the landing table by returning `NULL`.
147
147
148
148
## References
149
149
150
-
The following a list of resources from the PostgreSQL documentation:
150
+
Refer to the following a list of resources from the PostgreSQL documentation:
0 commit comments