Skip to content

Commit cd1b560

Browse files
justinianvoss22vincentfree
authored andcommitted
[receiver/netflowreceiver] add send_raw option for sending unparsed logs (open-telemetry#38832)
#### Description - Add a `send_raw` option to the config. - When set to true, the NetFlow log messages will be sent as an unparsed string in the log body. - When send_raw is false or is not configured, logs are parsed into attributes as before. - This works for all kinds of NetFlow log data, such as v5, v9, etc. #### Link to tracking issue Closes: open-telemetry#38920 #### Testing - New test in producer_test.go - Update test in config_test.go - Testing sending logs to Google SecOps: - Simulate NetFlow logs: https://hub.docker.com/r/networkstatic/nflow-generator - Set up configuration.yaml sending Netflow to Google SecOps - Confirm output of unparsed logs in Google SecOps #### Documentation - Update README.md with documentation of the `send_raw` field
1 parent e790011 commit cd1b560

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: enhancement
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
5+
component: netflowreceiver
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: Add `send_raw` option to send logs as a raw string in the log body instead of parsed into attributes.
9+
10+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
11+
issues: [38920]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext:
17+
18+
# If your change doesn't affect end users or the exported elements of any package,
19+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
20+
# Optional: The change log or logs in which this entry should be included.
21+
# e.g. '[user]' or '[user, api]'
22+
# Include 'user' if the change is relevant to end users.
23+
# Include 'api' if there is a change to a library API.
24+
# Default: '[user]'
25+
change_logs: [user]

0 commit comments

Comments
 (0)