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.
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
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.