ministryofjustice / analytics-platform

Parent repository for the MOJ Analytics Platform
MIT License
14 stars 1 forks source link

Some Apps don't send logs to elastic search #63

Closed r4vi closed 1 year ago

r4vi commented 6 years ago

What happened?

Some Apps don't send logs to elastic search

Steps to reproduce the problem

Generate some logs in a deployed webapp, look in elasticsearch/kibana for those logs. The logs don't appear

Can you reproduce the problem consistently?

yes

Expected behaviour

the logs should appear in kibana

r4vi commented 6 years ago

this might be because some apps get deployed without any elasticsearch credentials

$ k get secrets -n apps-prod  coroner-stat-tool-ext-webapp -o yaml

apiVersion: v1
data:
...
  elasticsearch_host: null
  elasticsearch_password: null
  elasticsearch_port: OTIwMA==
  elasticsearch_scheme: aHR0cA==
  elasticsearch_username: null
kind: Secret
metadata:
  creationTimestamp: 2018-07-17T11:18:36Z
  labels:
    app: coroner-stat-tool-ext-webapp
    chart: webapp-1.3.14
  name: coroner-stat-tool-ext-webapp
  namespace: apps-prod
  resourceVersion: "105127309"
  selfLink: /api/v1/namespaces/apps-prod/secrets/coroner-stat-tool-ext-webapp
  uid: 2611e4d8-89b3-11e8-9097-0ae455342364
type: Opaque