-
Notifications
You must be signed in to change notification settings - Fork 554
in_someip: Initial input plugin documentation. #1569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
anthonypayne-GM
wants to merge
13
commits into
fluent:master
Choose a base branch
from
anthonypayne-GM:someip-input-plugin-docs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
4ca9be6
in_someip: Initial input plugin documentation.
anthonypayne-GM 2b41441
Merge branch 'fluent:master' into someip-input-plugin-docs
anthonypayne-GM 42ddbc0
in_someip: Added yaml sample configuration
anthonypayne-GM df38c34
Update pipeline/inputs/someip.md
eschabell 9db2656
Update pipeline/inputs/someip.md
eschabell 46a7f11
Update pipeline/inputs/someip.md
eschabell a1d9a46
Update pipeline/inputs/someip.md
eschabell f314d8a
Update pipeline/inputs/someip.md
eschabell d3eae3c
Update pipeline/inputs/someip.md
eschabell abf83b4
Update pipeline/inputs/someip.md
eschabell 5706835
docs: pipeline: inputs: someip: fix formatting and markup errors
eschabell ce948a0
docs: pipeline: inputs: someip: fix formatting, markup, and vale issues
eschabell e7968d2
docs: pipeline: inputs: someip: moree vale compliance fixes
eschabell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| # SOMEIP | ||
|
|
||
| The `someip` input plugin is used to interact with a `SOME/IP` communication network to subscribe to events and to exchange request/response with `SOME/IP` services. | ||
|
|
||
| This plugin uses the [`vsomeip`](https://github.com/COVESA/vsomeip) library (built-in dependency). | ||
|
|
||
| ## Configuration parameters | ||
|
|
||
| The plugin supports the following configuration parameters: | ||
|
|
||
| | Key | Description | | ||
| | ------------ | ----------- | | ||
| | `event` | `SOME/IP` event to subscribe to. The configuration can have multiple events, one on each line. An event is identified by a comma-separated list with, `service_ID, event_ID, event_group_ID_1, event_group_ID_2, ...`. The event must include at least one `event_group_ID`, but can be associated with multiple. | | ||
| | `rpc` | `SOME/IP` request to send when service is available. The configuration can have multiple RPC entries, one on each line. An RPC is composed as a comma-separated list with, `service_ID, service_instance, method_ID, request_payload`. The request payload should be base64 encoded. | | ||
|
|
||
| ## Get started | ||
|
|
||
| To subscribe to `SOME/IP` events or send request/receive `SOME/IP` response, run the plugin from the command line or through the configuration file: | ||
|
|
||
| ### Command line | ||
|
|
||
| The `someip` plugin can be enabled with options from the command line: | ||
|
|
||
| ```shell | ||
| ./fluent-bit -i someip -p Event=4,1,32768,1 -o stdout | ||
| ``` | ||
|
|
||
| ### Configuration file | ||
|
|
||
| In your main configuration file append the following sections: | ||
|
|
||
| {% tabs %} | ||
| {% tab title="fluent-bit.yaml" %} | ||
| ```yaml | ||
| pipeline: | ||
| inputs: | ||
| - name: someip | ||
| event: | ||
| - '4,1,32768,1' | ||
| - '4,1,32769,2' | ||
| rpc: '4,1,1,CgAQAw==' | ||
| ``` | ||
| {% endtab %} | ||
| {% tab title="fluent-bit.conf" %} | ||
| ```text | ||
| [INPUT] | ||
| Name someip | ||
| Tag in.someip | ||
|
|
||
| Event 4,1,32768,1 | ||
| Event 4,1,32769,2 | ||
| RPC 4,1,1,CgAQAw== | ||
|
|
||
| [OUTPUT] | ||
| Name stdout | ||
| ``` | ||
| {% endtab %} | ||
| {% endtabs %} | ||
|
|
||
| ## Testing | ||
|
|
||
| Once Fluent Bit is running, you can send some `SOME/IP` messages using the `SOME/IP` test service provided. | ||
|
|
||
| ```shell | ||
| $ bin/someip_test_service | ||
| 2025-02-06 22:18:06.211337 [info] Parsed vsomeip configuration in 0ms | ||
| ... | ||
| Sending event with message Event Number 1 | ||
| Sent notification for service 4, event 32768 | ||
| Sending event with message Event Number 2 | ||
| Sent notification for service 4, event 32768 | ||
| ``` | ||
|
|
||
| The following output displays in [Fluent Bit](https://fluentbit.io): | ||
|
|
||
| ```shell | ||
| $ bin/fluent-bit -i someip -p Event=4,1,32768,1 -o stdout | ||
| Fluent Bit v3.2.0 | ||
| * Copyright (C) 2015-2024 The Fluent Bit Authors | ||
| * Fluent Bit is a CNCF sub-project under the umbrella of Fluentd | ||
| * https://fluentbit.io | ||
|
|
||
| ______ _ _ ______ _ _ _____ _____ | ||
| | ___| | | | | ___ (_) | |____ |/ __ \ | ||
| | |_ | |_ _ ___ _ __ | |_ | |_/ /_| |_ __ __ / /`' / /' | ||
| | _| | | | | |/ _ \ '_ \| __| | ___ \ | __| \ \ / / \ \ / / | ||
| | | | | |_| | __/ | | | |_ | |_/ / | |_ \ V /.___/ /./ /___ | ||
| \_| |_|\__,_|\___|_| |_|\__| \____/|_|\__| \_/ \____(_)_____/ | ||
|
|
||
|
|
||
| [2025/02/06 22:12:23] [ info] [fluent bit] version=3.2.0, commit=239b46be20, pid=51044 | ||
| [2025/02/06 22:12:23] [ info] [storage] ver=1.5.2, type=memory, sync=normal, checksum=off, max_chunks_up=128 | ||
| [2025/02/06 22:12:23] [ info] [simd ] disabled | ||
| [2025/02/06 22:12:23] [ info] [cmetrics] version=0.9.8 | ||
| [2025/02/06 22:12:23] [ info] [ctraces ] version=0.5.7 | ||
| [2025/02/06 22:12:23] [ info] [input:someip:someip.0] initializing | ||
| [2025/02/06 22:12:23] [ info] [input:someip:someip.0] storage_strategy='memory' (memory only) | ||
| [2025/02/06 22:12:23] [ info] [input:someip:someip.0] Received 1 configured events | ||
| [2025/02/06 22:12:23] [ info] [input:someip:someip.0] No RPC configured. | ||
| ... | ||
| 2025-02-06 22:18:03.130557 [info] vSomeIP 3.5.1 | (default) | ||
| 2025-02-06 22:18:06.223714 [info] Application/Client 0101 is registering. | ||
| 2025-02-06 22:18:06.225581 [info] Client [100] is connecting to [101] at /tmp/vsomeip-101 endpoint > 0x79a50c000e30 | ||
| 2025-02-06 22:18:06.230477 [info] REGISTERED_ACK(0101) | ||
| 2025-02-06 22:18:06.236103 [info] Port configuration missing for [4.1]. Service is internal. | ||
| 2025-02-06 22:18:06.236923 [info] OFFER(0101): [0004.0001:0.0] (true) | ||
| 2025-02-06 22:18:06.240237 [info] SUBSCRIBE ACK(0101): [0004.0001.0001.ffff] | ||
| Received message for service 4 event = 32768 | ||
| [0] someip.0: [[1738880288.622425534, {}], {"record type"=>"event", "service"=>4, "instance"=>1, "event"=>32768, "payload"=>"RXZlbnQgTnVtYmVyIDE="}] | ||
| Received message for service 4 event = 32768 | ||
| [0] someip.0: [[1738880290.622781511, {}], {"record type"=>"event", "service"=>4, "instance"=>1, "event"=>32768, "payload"=>"RXZlbnQgTnVtYmVyIDI="}] | ||
| ... | ||
| ``` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.