A Kibana plugin to pretty print JSON strings in the Kibana Discover/Logs tab. This doesn't index the JSON content, it just pretty prints & highlights it in the console for easier reading.
Built for Kibana 8.15.0.
I built this plugin because neither did I want to index the JSON content nor did I want to copy the JSON content to a JSON linter to pretty print it. After hours of searching, I couldn't find any way to pretty print JSONs in the Discover/Logs that did this, so I built one myself. If I missed something obvious, feel free to reach out.
The plugin archive is pushed to the build
folder & committed to the repository (Too lazy to set up a CI/CD pipeline for this).
- Install in Kibana via:
bin/kibana-plugin install https://github.com/adiwajshing/kibana-json-content/raw/refs/heads/master/build/jsonContent-8.15.0.zip
- If you're running on Kubernetes, you can use this guide.
- Open your Discover/Logs tab & select the field you'd like to print as JSON. This must be some string field. See this guide
- Enable the "Set format", and select JSON:
- Click save & close the field editor.
- Now, you can see the JSON content pretty printed in the console!
- Setup the Kibana development environment, read here. Use branch
8.15.0
or some8.x.x
branch. - In the Kibana root directory, run
cd plugins
- Clone this repository there:
git clone https://github.com/adiwajshing/json-content.git
- Switch to this plugin's directory:
cd json-content
- Setup the plugin:
yarn bootstrap
- Start the dev build:
yarn dev --watch
(watch is optional) - To build for production, run:
yarn build