-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Packetbeat] Fix data stream name for network flows under Agent #28408
[Packetbeat] Fix data stream name for network flows under Agent #28408
Conversation
This fixes and issue with network flows being written to the wrong index when using the Network Packet Capture integration in Fleet. The error was: {"type:"security_exception", "reason":"action [indices:admin/auto_create] is unauthorized for API key id [xxx] of user [elastic/fleet-server] on indices [logs-network_traffic.flow-default-2021.10.13] …"} The cause is that flows were setting `index` rather than `raw_index`. With `index` Beats adds the date suffix, but since this is a data stream we want `raw_index` where the value passes through as-is.
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
There weren't any existing integrations test that I could find for this. |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
Edit: no, similar fix, different issue. |
* Fix data stream name for network flows under Agent This fixes and issue with network flows being written to the wrong index when using the Network Packet Capture integration in Fleet. The error was: {"type:"security_exception", "reason":"action [indices:admin/auto_create] is unauthorized for API key id [xxx] of user [elastic/fleet-server] on indices [logs-network_traffic.flow-default-2021.10.13] …"} The cause is that flows were setting `index` rather than `raw_index`. With `index` Beats adds the date suffix, but since this is a data stream we want `raw_index` where the value passes through as-is. (cherry picked from commit 5c92897)
* Fix data stream name for network flows under Agent This fixes and issue with network flows being written to the wrong index when using the Network Packet Capture integration in Fleet. The error was: {"type:"security_exception", "reason":"action [indices:admin/auto_create] is unauthorized for API key id [xxx] of user [elastic/fleet-server] on indices [logs-network_traffic.flow-default-2021.10.13] …"} The cause is that flows were setting `index` rather than `raw_index`. With `index` Beats adds the date suffix, but since this is a data stream we want `raw_index` where the value passes through as-is. (cherry picked from commit 5c92897)
…) (#28469) * Fix data stream name for network flows under Agent This fixes and issue with network flows being written to the wrong index when using the Network Packet Capture integration in Fleet. The error was: {"type:"security_exception", "reason":"action [indices:admin/auto_create] is unauthorized for API key id [xxx] of user [elastic/fleet-server] on indices [logs-network_traffic.flow-default-2021.10.13] …"} The cause is that flows were setting `index` rather than `raw_index`. With `index` Beats adds the date suffix, but since this is a data stream we want `raw_index` where the value passes through as-is. (cherry picked from commit 5c92897) Co-authored-by: Andrew Kroh <[email protected]>
…) (#28468) * Fix data stream name for network flows under Agent This fixes and issue with network flows being written to the wrong index when using the Network Packet Capture integration in Fleet. The error was: {"type:"security_exception", "reason":"action [indices:admin/auto_create] is unauthorized for API key id [xxx] of user [elastic/fleet-server] on indices [logs-network_traffic.flow-default-2021.10.13] …"} The cause is that flows were setting `index` rather than `raw_index`. With `index` Beats adds the date suffix, but since this is a data stream we want `raw_index` where the value passes through as-is. (cherry picked from commit 5c92897) Co-authored-by: Andrew Kroh <[email protected]>
…tic#28408) * Fix data stream name for network flows under Agent This fixes and issue with network flows being written to the wrong index when using the Network Packet Capture integration in Fleet. The error was: {"type:"security_exception", "reason":"action [indices:admin/auto_create] is unauthorized for API key id [xxx] of user [elastic/fleet-server] on indices [logs-network_traffic.flow-default-2021.10.13] …"} The cause is that flows were setting `index` rather than `raw_index`. With `index` Beats adds the date suffix, but since this is a data stream we want `raw_index` where the value passes through as-is.
What does this PR do?
This fixes and issue with network flows being written to the wrong
index (it should not include any date) when using the Network Packet Capture integration in Fleet.
The error was:
{"type:"security_exception", "reason":"action [indices:admin/auto_create] is unauthorized for API key id [xxx] of user [elastic/fleet-server] on indices [logs-network_traffic.flow-default-2021.10.13] …"}
The cause is that flows were setting
index
rather thanraw_index
. Withindex
Beats adds the date suffix, but since this is a data stream wewant
raw_index
where the value passes through as-is.Why is it important?
Fleet could not ingest network flows from Packetbeat.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Links
Also reported in https://discuss.elastic.co/t/is-network-traffic-fleet-integration-the-new-packetbeat-missing-netfow/285636.