Skip to content

Commit 34bfa1e

Browse files
anthonypayne-GMammolitor
authored andcommitted
in_someip: Added SOME/IP input plugin
Signed-off-by: Anthony Payne <[email protected]>
1 parent 5bf71b2 commit 34bfa1e

File tree

10 files changed

+2424
-1
lines changed

10 files changed

+2424
-1
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ if(FLB_ALL)
239239
set(FLB_IN_NGINX_STATUS 1)
240240
set(FLB_IN_EXEC 1)
241241
set(FLB_IN_UNIX_SOCKET 1)
242-
set(FLB_IN_SOMEIP 1)
243242

244243
# Output plugins
245244
set(FLB_OUT_ES 1)

conf/in_someip.conf

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[SERVICE]
2+
# Flush
3+
# =====
4+
# Set an interval of seconds before to flush records to a destination
5+
Flush 5
6+
7+
# Daemon
8+
# ======
9+
# Instruct Fluent Bit to run in foreground or background mode.
10+
Daemon Off
11+
12+
# Log_Level
13+
# =========
14+
# Set the verbosity level of the service, values can be:
15+
#
16+
# - error
17+
# - warning
18+
# - info
19+
# - debug
20+
# - trace
21+
#
22+
# By default 'info' is set, that means it includes 'error' and 'warning'.
23+
Log_Level trace
24+
25+
# HTTP Monitoring Server
26+
# ======================
27+
#
28+
# HTTP_Monitor: enable/disable the HTTP Server to monitor
29+
# Fluent Bit internals.
30+
# HTTP_Port : specify the TCP port of the HTTP Server
31+
HTTP_Monitor Off
32+
HTTP_Port 2020
33+
34+
[INPUT]
35+
Name someip
36+
Tag in.someip
37+
38+
# Events to subscribe to.
39+
# Each event should have form:
40+
# Event <service id>,<instance id>,<event id>,<event group 1>,...
41+
#
42+
# Each event must have at least one event group
43+
Event 4,1,32768,1
44+
Event 4,1,32769,2
45+
46+
# RPC to send on startup
47+
# Each RPC entry should have form:
48+
# RPC <service id>,<instance id>,<method id>,<Request Payload>
49+
#
50+
# Request payload should be base64 encoded
51+
RPC 4,1,1,CgAQAw==
52+
[OUTPUT]
53+
Name stdout
54+
Match *

plugins/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ REGISTER_IN_PLUGIN("in_lib")
283283
REGISTER_IN_PLUGIN("in_forward")
284284
REGISTER_IN_PLUGIN("in_random")
285285

286+
if(FLB_IN_SOMEIP)
287+
REGISTER_IN_PLUGIN("in_someip")
288+
endif()
289+
286290
# PROCESSORS
287291
# ==========
288292
REGISTER_PROCESSOR_PLUGIN("processor_content_modifier")

plugins/in_someip/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set(src in_someip.c
2+
in_someip_config.c)
3+
4+
FLB_PLUGIN(in_someip "${src}" "someip-c")

0 commit comments

Comments
 (0)