Download: Releases Β· fufuok/beats-http-output (github.com)
Beat | Description |
---|---|
Auditbeat | Collect your Linux audit framework data and monitor the integrity of your files. |
Filebeat | Tails and ships log files |
Functionbeat | Read and ships events from serverless infrastructure. |
Heartbeat | Ping remote services for availability |
Metricbeat | Fetches sets of metrics from the operating system and services |
Packetbeat | Monitors the network and applications by sniffing packets |
Winlogbeat | Fetches and ships Windows Event logs |
Osquerybeat | Runs Osquery and manages interraction with it. |
Or
git clone https://github.com/fufuok/beats-http-output.git
go mod tidy
apt install libpcap-dev
make filebeat
make metricbeat
...
Build all programs:
make
Build Windows programs:
cd filebeat
go build .
Build Packetbeat on windows:
gcc
tdm-gcc (jmeubank.github.io)pcap
Npcap: Windows Packet Capture Library & Driver- Install
Npcap 1.60 installer
- Unzip
Npcap SDK 1.12 (ZIP)
toC:\WpdPack
- Install
go env -w CGO_ENABLED=1
cd packetbeat
andgo build .
Http output
The Http output sends events directly to a Http endpoint.
Example configuration:
output.http:
hosts: ["https://myhost"]
Basic authentication:
output.http:
hosts: ["https://myhost"]
username: "{user}"
password: "{pwd}"
You can specify the following options in the http
section of the {beatname_lc}.yml config file:
The enabled config is a string to set the protocol.
The default value is ``.
The path of the http endpoint to connect to (it can be also specified in hosts)
The default value is ``
output.http:
hosts: ["https://myhost"]
path: /api
or
output.http:
hosts: ["https://myhost/api"]
The http proxy to use
The default value is ``
output.http:
hosts: ["https://myhost"]
proxy_url: "http://myproxy:8080"
To load balance across several hosts
The default value is false
output.http:
hosts: ["https://myhost1", "https://myhost2"]
loadbalance: true
The default value is false
output.http:
hosts: ["https://myhost"]
batch_publish: true
The default value is 2048
output.http:
hosts: ["https://myhost"]
batch_size: 4096
Between 0 and 9. The default value is 0
output.http:
hosts: ["https://myhost"]
compression_level: 1
to use client certificates
output.http:
hosts: ["https://myhost"]
tls: 1
The default value is 3
output.http:
hosts: ["https://myhost"]
max_retries: 3
The default value is 90s
output.http:
hosts: ["https://myhost"]
timeout: 180s
To set http headers
output.http:
hosts: ["https://myhost"]
headers:
h1: v1
h2: v2
To set contenty type of the http request
output.http:
hosts: ["https://myhost"]
content_type: "text/json"
Backoff init and max values, in time.Duration type The default value is backoff.init: 1s
backoff.max: 60s
output.http:
hosts: ["https://myhost"]
backoff.init: 10s
backoff.max: 180s
It can be json
or json_lines
. The default value is json
output.http:
hosts: ["https://myhost"]
format: "text"
You can find the documentation and getting started guides for each of the Beats on the elastic.co site:
You can find the documentation and getting started guides for the Elastic Agent on the elastic.co site
If you need help or hit an issue, please start by opening a topic on our discuss forums. Please note that we reserve GitHub tickets for confirmed bugs and enhancement requests.
You can download pre-compiled Beats binaries, as well as packages for the supported platforms, from this page.
We'd love working with you! You can help make the Beats better in many ways: report issues, help us reproduce issues, fix bugs, add functionality, or even create your own Beat.
Please start by reading our CONTRIBUTING file.
See our CONTRIBUTING file for information about setting up your dev environment to build Beats from the source.
For testing purposes, we generate snapshot builds that you can find here. Please be aware that these are built on top of main and are not meant for production.
It is possible to trigger some jobs by putting a comment on a GitHub PR. (This service is only available for users affiliated with Elastic and not for open-source contributors.)
- beats
jenkins run the tests please
orjenkins run tests
or/test
will kick off a default build./test macos
will kick off a default build with also themacos
stages./test <beat-name>
will kick off the default build for the given PR in addition to the<beat-name>
build itself./test <beat-name> for macos
will kick off a default build with also themacos
stage for the<beat-name>
.
- apm-beats-update
/run apm-beats-update
- apm-beats-packaging
/package
or/packaging
will kick of a build to generate the packages for beats.
- apm-beats-tester
/beats-tester
will kick of a build to validate the generated packages.
It's possible to configure the build on a GitHub PR by labelling the PR with the below labels
<beat-name>
to force the following builds to run the stages for the<beat-name>
macOS
to force the following builds to run themacos
stages.