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
The **sql** processor provides a simple interface to select content from Logs by also supporting conditional expressions.
4
+
5
+
Our SQL processor does not depend on a database or indexing; it runs everything on the fly (this is good). We don't have the concept of tables but you run the query on the STREAM.
6
+
7
+
Note that this processor differs from the "stream processor interface" that runs after the filters; this one can only be used in the processor's section of the input plugins when using YAML configuration mode.
8
+
9
+
## Configuration Parameters
10
+
11
+
| Key | Description |
12
+
| :---------- | :--- |
13
+
| query | Define the SQL statement to run on top of the Logs stream; it must end with `;` . |
14
+
15
+
16
+
17
+
### Simple selection example
18
+
19
+
The following example generates a sample message with two keys called `key` and `http.url`. By using a simple SQL statement we will select only the key `http.url`.
Similar to the example above, now we will extract the parts of `http.url` and only select the domain from the value, for that we will use together content-modifier and sql processors together:
0 commit comments