Clickhouse_Sinker is a sinker program that transfer kafka message into ClickHouse. Clickhouse_Sinker_Nali
-
Clickhouse_Sinker_Nali based on Clickhouse_Sinker v2.2.0
-
GeoIP information provide from Nali v0.3.4
- Get messages from Kafka
- Get ip_src and ip_dst geo info from Nali module
- Reduce unknown on class field (serviceMap replace unknown)
- Add "loc_src/loc_dst/isp_src/isp_dst" field to message
- Write messages to Clickhouse
go get -u github.com/forever765/clickhouse_sinker_nali/...
make build
configuration new option "geoipHandle" & "autoUpdateGeoIPDB" under the "task" field.
- geoipHandle: use or not handle geoip info.
- autoUpdateGeoIPDB: set auto update NALI geoip db file cronjob interval time.
"geoipHandle": true
"autoUpdateGeoIPDB": "0 3 * * *"
- Sinker listen port and log path setting:
cmdOps on cmd/clickhouse_sinker_nali/main.go
- GeoIP Database file download path:
variable "HomePath" on ipHandle/constant/path.go