herrBez / elastic-blog-openshift-logging

Code snippets for the blog: https://www.elastic.co/blog/openshift-container-logs-red-hat-logging-operator
https://www.elastic.co/blog/openshift-container-logs-red-hat-logging-operator
Apache License 2.0
0 stars 1 forks source link

Elastic Blog - Collecting OpenShift container logs using Red Hat’s OpenShift Logging Operator - Code Snippets

This repository contain the code snippets for the blog: Collecting OpenShift container logs using Red Hat’s OpenShift Logging Operator to public discussion and continue maintaining the pipelines.

Render the Blog

The Markdown version of the (BLOG.md)[./BLOG.md] is generated from the template (BLOG.md.j2)(./BLOG.md.j2). Please do not edit the BLOG file directly but first the BLOG.md.j2 and then render the template with the following command:

python render_blog.py

Setup

To upload the pipelines and create the indices we can use the bootstrap.sh script:

ES_URL=https://xxxxxx:9200 ES_USERNAME=myuser ES_PASSWORD=mypassword ./bootstrap.sh

The script is based on the yq command to convert YAML files to JSON. You can follow the yq installation instrunctions or install the yq python package.