aboutsummaryrefslogtreecommitdiff
path: root/config_test.go
AgeCommit message (Collapse)Author
2025-12-29all: add missing SPDX license to all filesShulhan
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.
2024-03-18all: rename the forwarder files by using prefix "forwarder_"Shulhan
2024-03-16all: comply with all linters recommendationsShulhan
Some of breaking changes, * Field [Config.HttpUrl] renamed to [Config.HTTPURL] * Field [ConfigForwarder.Url] renamed to [ConfigForwarder.URL] * Struct [HttpLog] renamed to [HTTPLog]
2024-03-16all: replace module "share" with "pakakeh.go"Shulhan
2022-08-19all: relicensing the haminer to GPL v3Shulhan
See https://kilabit.info/journal/2022/gpl/ for more information.
2022-08-17all: make the forwarders configuration fields to be genericShulhan
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.
2022-08-17all: rename struct InfluxdConfig to ConfigForwarderShulhan
Later we will have multiple forwarders, not only influxd.
2022-08-15all: add support for influxd API v2Shulhan
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.
2022-08-14all: update the go.modShulhan
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.
2019-01-04haminer: change buffered mode from max size to time intervalShulhan
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).
2019-01-04Add option to preprocess http_urlShulhan
2019-01-04config: change the capture request header separator to commaShulhan
This is to make it consistent with separator on "accept_backend".
2019-01-04config: replace configuration with ini file formatShulhan