fix docker pattern to add geoip asn extraction
This commit is contained in:
parent
c2063ef4d7
commit
f322afc927
3
Makefile
3
Makefile
@ -12,7 +12,8 @@ VERBOSITY=debug
|
|||||||
## build
|
## build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(shell docker-multi-arch-builder build -n filebeat --platforms $(PLATFORM) -v $(VERBOSITY))
|
docker manifest rm docker.registry:5000/filebeat:latest
|
||||||
|
docker-multi-arch-builder build -n filebeat --platforms $(PLATFORM) -v $(VERBOSITY)
|
||||||
|
|
||||||
## management
|
## management
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ processors:
|
|||||||
host: "unix:///var/run/docker.sock"
|
host: "unix:///var/run/docker.sock"
|
||||||
- add_host_metadata: ~
|
- add_host_metadata: ~
|
||||||
- dissect:
|
- dissect:
|
||||||
tokenizer: '%{nginx.remote_addr} - %{nginx.remote_user} [%{nginx.time}] %{nginx.host} "%{nginx.request}" %{nginx.status|integer} %{nginx.http_referer} "%{nginx.http_user_agent}" %{nginx.http_x_forwarded_for} %{nginx.request_id} "%{nginx.geoip_country_name}" %{nginx.geoip_country_code} %{nginx.geoip.lat|double} %{nginx.geoip.lon|double} req_header:"%{nginx.header.req}" resp_header:"%{nginx.header.resp}"'
|
tokenizer: '%{nginx.remote_addr} - %{nginx.remote_user} [%{nginx.time}] %{nginx.host} "%{nginx.request}" %{nginx.status|integer} %{nginx.http_referer} "%{nginx.http_user_agent}" %{nginx.http_x_forwarded_for} %{nginx.request_id} "%{nginx.geoip_country_name}" %{nginx.geoip_country_code} "%{nginx.geoip_asn_name}" %{nginx.geoip_asn_number|integer} location:"%{nginx.geoip.lat|double}" "%{nginx.geoip.lon|double}" req_header:"%{nginx.header.req}" resp_header:"%{nginx.header.resp}"'
|
||||||
trim_values: all
|
trim_values: all
|
||||||
target_prefix: ""
|
target_prefix: ""
|
||||||
field: "message"
|
field: "message"
|
||||||
@ -29,7 +29,7 @@ processors:
|
|||||||
equals:
|
equals:
|
||||||
container.name: nginxfront
|
container.name: nginxfront
|
||||||
- dissect:
|
- dissect:
|
||||||
tokenizer: '%{php.time} [%{php.status}] %{php.info}: %{php.message}, client: %{php.client}, server: %{php.server}, request: "%{php.request}", upstream: "%{php.upstream}", host: "%{php.host}"'
|
tokenizer: '%{php.time} [%{php.status}] %{php.info}: %{php.message}, client: %{php.client}, server: %{php.server}, request: "%{php.request}", host: "%{php.host}"'
|
||||||
target_prefix: ""
|
target_prefix: ""
|
||||||
field: "message"
|
field: "message"
|
||||||
when:
|
when:
|
||||||
|
Loading…
Reference in New Issue
Block a user