Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 883 Bytes

README.md

File metadata and controls

30 lines (27 loc) · 883 Bytes

kibanaRefreshFields

Refresh kibana index fields via kibanas API

Expected variables

I have this setup in my ~/.bashrc, another deployment would be to place this in k8s.

export KIBANA_USERNAME=jmainguy
export KIBANA_PASSWORD="supersecret"
export KIBANA_URL=logs-lab.example.com
export KIBANA_INDEX="filebeat-*"
# Optional, if you want to filter out some fields
export KIBANA_FILTER="kubernetes.labels.jenkins"
# Optional, if you want to connect with a spefic tls certificate
export KIBANA_CERT="/tmp/self_signed.crt"
# Optional, if you want to connect without verifying the TLS security, simliar to curl -k
export KIBANA_INSECURE="true"

Usage

./kibanaRefreshFields

PreBuilt Binaries

Grab Binaries from The Releases Page

Build

export GO111MODULE=on
go build