Set transport macro for local mechanisms#4777
Conversation
|
Build FAILURE |
f4037e4 to
96e3c62
Compare
|
@mbonsack can you have a look on these transport values? I don't think we would see these too much, but I wanted to make sure that $TRANSPORT points to the ingest mechanism even if a local transport is used. Thanks |
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
The affile plugin implements file(), pipe(), stdin() and stdout() drivers. Make sure all of the source drivers set $TRANSPORT properly. Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
96e3c62 to
0f01f71
Compare
|
@HofiOne I added code to set $TRANSPORT in the case for both darwin-oslog() and darwin-oslog-stream() a review on that piece would be welcome. |
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
0f01f71 to
ccca5c1
Compare
| static inline void | ||
| log_msg_set_value_to_string(LogMessage *self, NVHandle handle, const gchar *literal_string) | ||
| { | ||
| log_msg_set_value(self, handle, literal_string, strlen(literal_string)); |
There was a problem hiding this comment.
We call this on the hot path, for every message, when setting the $TRANSPORT macro.
I think it could be better if we'd call log_msg_set_value() with sizeof() or introduce log_msg_set_value_to_literal_string as a macro to avoid this per-message strlen() call.
There was a problem hiding this comment.
I didn't check but this should be inlined with the same effect.
It may not, unless we compile using -O3
Signed-off-by: Attila Szakacs <[email protected]>
Signed-off-by: Attila Szakacs <[email protected]>
Signed-off-by: Attila Szakacs <[email protected]>
This rounds up the setting of the $TRANSPORT macro for local log transport mechanisms.
The convention used is: local+
+1 mqtt now sets $TRANSPORT to mqtt