Azure / oms-log-analytics-firehose-nozzle

Microsoft Azure Log Analytics Nozzle
Apache License 2.0
11 stars 14 forks source link

Support app rename #22

Open Kdecherf opened 5 years ago

Kdecherf commented 5 years ago

Hello,

The Nozzle does not seem to support the renaming of a PCF application as its name is cached once on the start of the [Nozzle] instance or when the first message goes through it and is never invalidated. This behavior causes a mismatch in the ApplicationName field of indexed logs when you do blue-green deployments on PCF.

Steps to reproduce

  1. Create and start an application named appA that emits some logs
  2. Renaming this app into appB
  3. Check logs in the OMS Workspace, they are still incorrectly indexed with appA as the ApplicationName
HDYA commented 4 years ago

This issue is caused by the cache of app info inside the nozzle, cache should be refreshed