[go: up one dir, main page]

Skip to content

Jmainguy/kibanaRefreshFields

Repository files navigation

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