cloudfoundry-community / logsearch-for-cloudfoundry

A Logsearch addon that customises Logsearch to work with Cloud Foundry data
Apache License 2.0
49 stars 58 forks source link

upload-kibana-objects fails when using domain names other than `logs` and `login` #331

Closed bengerman13 closed 4 years ago

bengerman13 commented 4 years ago

running the upload-kibana-objects job fails with this error on our system, where we're using urls other than logs.$SYSTEM_DOMAIN and login.$SYSTEM_DOMAIN

Stderr     Traceback (most recent call last):  
             File "/var/vcap/jobs/upload-kibana-objects/bin/import-objects", line 16, in <module>  
               assert logs.url == <our login url>  
           AssertionError  

that's happening here.

I'm happy to do the work to make this variable (with the current expected values as defaults, of course) but I want to make sure I'm not off-base here first.

bengerman13 commented 4 years ago

I looked further at this, and it's worse for us than I thought - this successfully uploaded objects to the wrong instance (we have 2 logsearch instances in each environment with different configs and urls)

axelaris commented 4 years ago

Should be resolved by https://github.com/cloudfoundry-community/logsearch-for-cloudfoundry/pull/336