Re: CF environmental variables - org is missing

Vinod Singh <vinoddandy@...>

Hi Jaison,

If CF team can include app_name+space+org in Loggregator logs, that would
solve many of our use cases. The current application id is created at
runtime and external systems finding difficult to segregate message based
on application id.

Do we have any blog item to include app_name in loggregator messages ?


On Tue, Oct 18, 2016 at 8:03 AM, Peter Dotchev <dotchev(a)> wrote:

Hi Jason,

For example, when connecting to the database we set the client application
name on the connection.
If the db becomes heavily loaded, the db admin can check the expensive
statements view and see which applications generate them.
Also for end to end tracing when a transaction goes through multiple
components, we have to record each involved component name.
So we need an application name that is human readable and unique.

Best regards,

On Tue, Oct 18, 2016 at 12:39 AM, Jason Sherron <jsherron(a)>

Hi Peter,

Can you detail your supportability needs for external services? I'm
wondering if this is something that could be filtered at the network level
and if that might help. We're building ways to identify and filter network
traffic sources by application. It wouldn't include arbitrary text like
org/space, but would be mapped to an application via an identifier and
perhaps IP address.

Jason - Container Networking

On Mon, Oct 17, 2016 at 1:26 PM Peter Dotchev <dotchev(a)> wrote:


We have the same issue.
For supportability reasons we need the app to identify itself when
connecting to external services.
application_id is not suitable in this case as the operator/admin cannot
easily decipher it.
It would be best to identify the app using org_name + space_name +
All of these are present in VCAP_APPLICATION except org_name.
Is it omitted intentionally? If not, can it be added?

Best regards,

On Thu, Oct 13, 2016 at 6:19 PM, Vinod Singh <vinoddandy(a)>


I am working to retrieve org/space/application-name in CF via System
provided environmental variables.
Unfortunately I could not "org" in list. Is it not a good idea to
include "org" also in System Provided list ?

cf env <appname>


"application_id": "74b3e1a6-ba9f-4dcb-9ae3-e68e1dbfa417",
"application_name": "mylogapp",
"application_uris": [
"application_version": "e43c2d12-cd8e-46d3-9298-ce0905651c0e",
"limits": {
"disk": 1024,
"fds": 16384,
"mem": 128
"name": "mylogapp",
"space_id": "4d942c57-e41e-43e2-ba3a-0665ceaa976b",
"space_name": "demo2",
"uris": [
"users": null,
"version": "e43c2d12-cd8e-46d3-9298-ce0905651c0e"


Join { to automatically receive all group messages.