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
close #7924 - Update usage and behaviour of tags in http input (#1195)
* close #7924 - Update usage and behaviour of tags in http input
Signed-off-by: Ricardo F <[email protected]>
* close #7924 - Split lines to allow easier review
Signed-off-by: Ricardo F <[email protected]>
---------
Signed-off-by: Ricardo F <[email protected]>
Co-authored-by: Ricardo F <[email protected]>
Copy file name to clipboardExpand all lines: pipeline/inputs/http.md
+68-1Lines changed: 68 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,74 @@ The http input plugin allows Fluent Bit to open up an HTTP port that you can the
28
28
29
29
#### How to set tag
30
30
31
-
The tag for the HTTP input plugin is set by adding the tag to the end of the request URL. This tag is then used to route the event through the system. For example, in the following curl message below the tag set is `app.log`**. **If you do not set the tag `http.0` is automatically used. If you have multiple HTTP inputs then they will follow a pattern of `http.N` where N is an integer representing the input.
31
+
The tag for the HTTP input plugin is set by adding the tag to the end of the request URL. This tag is then used to route the event through the system.
32
+
For example, in the following curl message below the tag set is `app.log**. **` because the end end path is `/app_log`:
If you do not set the tag `http.0` is automatically used. If you have multiple HTTP inputs then they will follow a pattern of `http.N` where N is an integer representing the input.
The tag_key configuration option allows to specify the key name that will be used to overwrite a tag. The tag's value will be replaced with the value associated with the specified key. For example, setting tag_key to "custom_tag" and the log event contains a json field with the key "custom_tag" Fluent Bit will use the value of that field as the new tag for routing the event through the system.
0 commit comments