| Age | Commit message (Collapse) | Author |
|
Convert the old ".reuse/dep5" format to REUSE.toml format using
"reuse convert-dep5" command.
For generated files, add the ".license" file.
Using "reuse annotate ..." it automatically add empty line after
"SPDX-FileCopyrightText:", and it also put "SPDX-FileCopyrightText" above
the "SPDX-License-Identifier".
Now, this project is compliant with version 3.3 of the REUSE
Specification.
|
|
|
|
Some of breaking changes,
* Field [Config.HttpUrl] renamed to [Config.HTTPURL]
* Field [ConfigForwarder.Url] renamed to [ConfigForwarder.URL]
* Struct [HttpLog] renamed to [HTTPLog]
|
|
|
|
See https://kilabit.info/journal/2022/gpl/ for more information.
|
|
Questdb [1] is one the time-series database.
We experiment to forward the HTTP log using Influx Line Protocol (ILP).
[1]: https://questdb.io/
|
|
Instead of single forwarder, Influxd, the Config struct now can have
one or more forwarders.
The kind of forwarders is defined by it subsection name, for example
`[forwarder "influxd"]` defined a forwarder for influxd.
|
|
Later we will have multiple forwarders, not only influxd.
|
|
|
|
Since the influxdb v2, and since the flux query language introduced,
the way the log read and queried kinda changes.
Things that we can query on v1, is not possible (or maybe I forgotten)
anymore.
This changes move all haproxy log fields value that is not number (except
HTTP status code) to tags and left all numbers (like time, number of
connections, bytes read) in the fields.
|
|
This changes replace the "influxdb_api_write" with new section
`[forwarder "influxd"]`.
The section contains version, url, org, bucket, user, password, and
token.
The version field define the API version to be used when writing log
to Influxd.
|
|
Set the minimum Go to 1.18 and update the share modules.
When this program written, the ini library does not have the Unmarshal
function, so we load the configuration by reading each key and parse it
manually.
Now that we have Unmarshal function, the way we parse the configuration
is simplified so does the way configuration written.
This changes the accept_backend, capture_request_header written.
Instead of using comma to set multiple values, now it must be written
one key and one value on different line.
|
|
Previously, we forward the logs only if total collected logs in buffer
is greater or equal to 10.
This commit change the model into using time interval, where the logs
will be send every N seconds (default to 15 seconds).
|
|
|
|
This is to make it consistent with separator on "accept_backend".
|
|
|
|
|
|
|