Vinod Singh <vinoddandy@...>
Friends,
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>
System-Provided:
{ "VCAP_APPLICATION": { "application_id": "74b3e1a6-ba9f-4dcb-9ae3-e68e1dbfa417", "application_name": "mylogapp", "application_uris": [ "xxxx.xxxx.xxx" ], "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": [ "xxxxx.xxxxx.xxxxx" ], "users": null, "version": "e43c2d12-cd8e-46d3-9298-ce0905651c0e" } }
Regards, Vinod
|
|
Peter Dotchev <dotchev@...>
Hi,
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 + app_name. All of these are present in VCAP_APPLICATION except org_name. Is it omitted intentionally? If not, can it be added?
Best regards, Peter
toggle quoted message
Show quoted text
On Thu, Oct 13, 2016 at 6:19 PM, Vinod Singh <vinoddandy(a)gmail.com> wrote: Friends,
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>
System-Provided:
{ "VCAP_APPLICATION": { "application_id": "74b3e1a6-ba9f-4dcb-9ae3-e68e1dbfa417", "application_name": "mylogapp", "application_uris": [ "xxxx.xxxx.xxx" ], "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": [ "xxxxx.xxxxx.xxxxx" ], "users": null, "version": "e43c2d12-cd8e-46d3-9298-ce0905651c0e" } }
Regards, Vinod
|
|
toggle quoted message
Show quoted text
On October 13, 2016 at 8:20:21 AM, Vinod Singh (vinoddandy(a)gmail.com) wrote:
Friends,
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>
System-Provided:
{ "VCAP_APPLICATION": { "application_id": "74b3e1a6-ba9f-4dcb-9ae3-e68e1dbfa417", "application_name": "mylogapp", "application_uris": [ "xxxx.xxxx.xxx" ], "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": [ "xxxxx.xxxxx.xxxxx" ], "users": null, "version": "e43c2d12-cd8e-46d3-9298-ce0905651c0e" } }
Regards, Vinod
|
|
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
toggle quoted message
Show quoted text
On Mon, Oct 17, 2016 at 1:26 PM Peter Dotchev <dotchev(a)gmail.com> wrote: Hi,
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 + app_name. All of these are present in VCAP_APPLICATION except org_name. Is it omitted intentionally? If not, can it be added?
Best regards, Peter
On Thu, Oct 13, 2016 at 6:19 PM, Vinod Singh <vinoddandy(a)gmail.com> wrote:
Friends,
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>
System-Provided:
{ "VCAP_APPLICATION": { "application_id": "74b3e1a6-ba9f-4dcb-9ae3-e68e1dbfa417", "application_name": "mylogapp", "application_uris": [ "xxxx.xxxx.xxx" ], "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": [ "xxxxx.xxxxx.xxxxx" ], "users": null, "version": "e43c2d12-cd8e-46d3-9298-ce0905651c0e" } }
Regards, Vinod
|
|
Peter Dotchev <dotchev@...>
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, Petar
toggle quoted message
Show quoted text
On Tue, Oct 18, 2016 at 12:39 AM, Jason Sherron <jsherron(a)pivotal.io> wrote: 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)gmail.com> wrote:
Hi,
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 + app_name. All of these are present in VCAP_APPLICATION except org_name. Is it omitted intentionally? If not, can it be added?
Best regards, Peter
On Thu, Oct 13, 2016 at 6:19 PM, Vinod Singh <vinoddandy(a)gmail.com> wrote:
Friends,
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>
System-Provided:
{ "VCAP_APPLICATION": { "application_id": "74b3e1a6-ba9f-4dcb-9ae3-e68e1dbfa417", "application_name": "mylogapp", "application_uris": [ "xxxx.xxxx.xxx" ], "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": [ "xxxxx.xxxxx.xxxxx" ], "users": null, "version": "e43c2d12-cd8e-46d3-9298-ce0905651c0e" } }
Regards, Vinod
|
|
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 ?
Regards, Vinod
toggle quoted message
Show quoted text
On Tue, Oct 18, 2016 at 8:03 AM, Peter Dotchev <dotchev(a)gmail.com> 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, Petar
On Tue, Oct 18, 2016 at 12:39 AM, Jason Sherron <jsherron(a)pivotal.io> wrote:
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)gmail.com> wrote:
Hi,
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 + app_name. All of these are present in VCAP_APPLICATION except org_name. Is it omitted intentionally? If not, can it be added?
Best regards, Peter
On Thu, Oct 13, 2016 at 6:19 PM, Vinod Singh <vinoddandy(a)gmail.com> wrote:
Friends,
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>
System-Provided:
{ "VCAP_APPLICATION": { "application_id": "74b3e1a6-ba9f-4dcb-9ae3-e68e1dbfa417", "application_name": "mylogapp", "application_uris": [ "xxxx.xxxx.xxx" ], "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": [ "xxxxx.xxxxx.xxxxx" ], "users": null, "version": "e43c2d12-cd8e-46d3-9298-ce0905651c0e" } }
Regards, Vinod
|
|
Hi Vinod,
I was referring to filtering packets by application at the network layer, nothing to do with the format of application logs or other human-readable text. Sorry for the confusion.
Jason
toggle quoted message
Show quoted text
On Wed, Oct 19, 2016 at 6:49 PM Vinod Singh <vinoddandy(a)gmail.com> wrote: 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 ?
Regards, Vinod
On Tue, Oct 18, 2016 at 8:03 AM, Peter Dotchev <dotchev(a)gmail.com> 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, Petar
On Tue, Oct 18, 2016 at 12:39 AM, Jason Sherron <jsherron(a)pivotal.io> wrote:
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)gmail.com> wrote:
Hi,
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 + app_name. All of these are present in VCAP_APPLICATION except org_name. Is it omitted intentionally? If not, can it be added?
Best regards, Peter
On Thu, Oct 13, 2016 at 6:19 PM, Vinod Singh <vinoddandy(a)gmail.com> wrote:
Friends,
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>
System-Provided:
{ "VCAP_APPLICATION": { "application_id": "74b3e1a6-ba9f-4dcb-9ae3-e68e1dbfa417", "application_name": "mylogapp", "application_uris": [ "xxxx.xxxx.xxx" ], "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": [ "xxxxx.xxxxx.xxxxx" ], "users": null, "version": "e43c2d12-cd8e-46d3-9298-ce0905651c0e" } }
Regards, Vinod
|
|