-
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
TCP/TLS Output for Beats #33107
Comments
A lumberjack input was added to main branch which will do this. |
@legoguy1000 Sweet! Do you have any samples or docs for using this, or could you point me at the source for this input? Edit: Think I found it: #32175 This looks like an input that can receive events via the lumberjack protocol. Is there an output in Filebeat that works with it? I found #27951 which would add a generic HTTP output but it was closed because it sounds like Elastic isn't supporting new output types for Beats. |
The logstash output is the lumberjack protocol |
I think I follow. You're saying I can configure the Logstash output in Filebeat and point it at another Filebeat that uses the new lumberjack input? |
Correct. That should work. |
I'll try testing that out and close this issue once I've confirmed. Thanks for your help! |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
So I haven't gotten around to testing this yet, but the following description in the PR (#32175) makes it sound like the Lumberjack input is only a temporary addition to Filebeat and will be relocating into the Elastic Agent:
Is this the intent? Will this input remain undocumented and eventually get pulled from Filebeat? |
The agent is just a management process. Filebeat and metricbeat still runs underneath it. So for the agent to have it, filebeat has to have it |
Hi! We're labeling this issue as |
So I finally got around to testing this and can confirm that using a I have a use case where I have Winlogbeat deployed to endpoints, and I want those logs to flow to another Filebeat acting as a relay. That relay then sends to another Filebeat in a different part of the network. So: In my test, it seems each hop through the {
data from Filebeat C ...
"lumberjack": {
data from Filebeat B ...
"lumberjack": {
data from Filebeat A, aka the original event ...
}
}
} At some point this event is going to make it into Elasticsearch, and I'll have to unravel this nesting before doing any processing of the event via ingest pipelines. Is there a way to promote the original event to the root of the document so that it doesn't end up nested under a |
Just posting for anyone else who may be interested, but this seems doable via the
Then you can just remove the top level This is only if you don't care about losing any of the beat context between agents as the event passes through. This script will make it appear as if the event went through a single Filebeat. |
Describe the enhancement:
I would like to see a generic TCP output (with optional TLS) added to Beats. This was originally proposed in #11942 but closed due to inactivity.
Describe a specific use case for the enhancement or feature:
There were some good examples in the original issue. Personally, I would like a TCP output so that I can use Beat-to-Beat communication. This would enable me to deploy minimally-configured instances of Winlogbeat and have them all converge to a central Beat. The Winlogbeat instances would be on a separate section of the network from Elasticsearch and wouldn't require any credentials or authentication management. They would simply gather data and send events to a central "Collector" Beat installed on a section of the network that can talk to Elasticsearch. The "Collector" Beat would manage configuration for the Elasticsearch output, including proper authentication/credentials.
This example would be very useful for shipping logs in heavily segmented networks and also simplifies the management of configuration and credentials needed to send the data to Elasticsearch.
The text was updated successfully, but these errors were encountered: