Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quickstart Guide for Logstash not working #7572

Closed
lost-carrier opened this issue Feb 22, 2024 · 1 comment · Fixed by #7580
Closed

Quickstart Guide for Logstash not working #7572

lost-carrier opened this issue Feb 22, 2024 · 1 comment · Fixed by #7580
Labels
>bug Something isn't working >docs Documentation :logstash

Comments

@lost-carrier
Copy link

Bug Report

What did you do?
Tried to setup Logstash according to Quickstart guide.

What did you expect to see?
Logstash up and running

What did you see instead? Under which circumstances?

Environment

  • ECK version:

    2.11.1

  • Kubernetes information:

    • K0S On premise
$ kubectl version
Client Version: v1.28.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.1+k0s

On https://www.elastic.co/guide/en/cloud-on-k8s/2.11/k8s-logstash-quickstart.html I copy-pasted the given example at the top...

cat <<EOF | kubectl apply -f -
apiVersion: logstash.k8s.elastic.co/v1alpha1
kind: Logstash
metadata:
  name: quickstart
spec:
[...]
  pipelines:
    - pipeline.id: main
      config.string: |
        input {
          beats {
            port => 5044
          }
        }
        output {
          elasticsearch {
            hosts => [ "${QS_ES_HOSTS}" ]
            user => "${QS_ES_USER}"
            password => "${QS_ES_PASSWORD}"
            ssl_certificate_authorities => "${QS_ES_SSL_CERTIFICATE_AUTHORITY}"
          }
        }
  services:
[...]

...and found the ${...} variables not getting filled once on Kubernetes.

When passed via shell (cat <<EOF | kubectl apply -f -...) instead of a file, those will need to be escaped!

            hosts => [ "\${QS_ES_HOSTS}" ]
            user => "\${QS_ES_USER}"
            password => "\${QS_ES_PASSWORD}"
            ssl_certificate_authorities => "\${QS_ES_SSL_CERTIFICATE_AUTHORITY}"

Not a huge issue, but keeps beginners (main quickstart audience, I guess) struggling...

@botelastic botelastic bot added the triage label Feb 22, 2024
@lost-carrier lost-carrier changed the title Quickstart Guide not working Quickstart Guide for Logstash not working Feb 22, 2024
@barkbay barkbay added >bug Something isn't working >docs Documentation :logstash labels Feb 22, 2024
@botelastic botelastic bot removed the triage label Feb 22, 2024
@thbkrkr
Copy link
Contributor

thbkrkr commented Feb 27, 2024

Thanks for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working >docs Documentation :logstash
Projects
None yet
3 participants