Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore chatty applications #206

Closed
hanswurscht opened this issue Aug 19, 2019 · 9 comments · Fixed by #277
Closed

Ignore chatty applications #206

hanswurscht opened this issue Aug 19, 2019 · 9 comments · Fixed by #277
Assignees
Labels

Comments

@hanswurscht
Copy link

Hi,

since #114 was closed, there is this new issue to clarify the situation.

What is the proper solution to temporary ignore chatty applications?
Is it possible to just ignore logs from stdout/stderr but keep the container metrics?

Should i use F2S_DISABLE_LOGGING=true or should i use the index routing feature for it?
What exactly do i have to set as target index if i want to ignore the apps stdout/stderr?

Thanks!

@luckyj5
Copy link
Collaborator

luckyj5 commented Sep 27, 2019

Hi @hanswurscht
Are you looking to just collect container metrics and not application logs? If thats the case, please select event types you are interested in when configuring the tile or nozzle manifest.

If you are looking to discard logging for few applications, then you can use F2S_DISABLE_LOGGING=true.
Index routing feature is not used to discard the logs, its used to re-route individual applications data to different indexes in Splunk.
Thanks!

@hanswurscht
Copy link
Author

Hi,

this doesn't seem to work in our environment.

We have set F2S_DISABLE_LOGGING = true as a environment variable in our application. Nevertheless logs (cf:logmessage) from that application are transmitted.
Are we missing something?

Have there been improvements in the latest release?

  • Lorenz

@luckyj5
Copy link
Collaborator

luckyj5 commented Nov 16, 2020

@hanswurscht Which PCF/ Tanzu version are you using?

@hanswurscht
Copy link
Author

@luckyj5 We are on 2.9 currently.

@luckyj5 luckyj5 added the bug label May 11, 2021
@luckyj5 luckyj5 self-assigned this May 11, 2021
@luckyj5 luckyj5 linked a pull request May 11, 2021 that will close this issue
@luckyj5
Copy link
Collaborator

luckyj5 commented May 11, 2021

Please use latest release (v1.2.2) which includes the fix for this issue. Thanks!

@luckyj5 luckyj5 closed this as completed May 11, 2021
@christianerbsmehl
Copy link

Same issue here. We would like to disable the cf:logmessage events (not needed because we use custom logging via Serilog/HttpEventCollector) but still want to receive cf:containermetric events etc.

F2S_DISABLE_LOGGING=true is not a solution as it disables all cf:* events. Configuring the tile or nozzle manifest is also not possible for us, because this is done by our platform administrators and all events are enabled by default globally.

It would be nice to have a way to disable certain events on application level, e.g. by setting different environment variables.

@luckyj5
Copy link
Collaborator

luckyj5 commented Jul 27, 2022

@christianerbsmehl Please use Event-type configuration to disable cf:logmessage (i.e, do not configure LogMessage event type when configuring nozzle either thru the Tile, manifest or env variables)
https://docs.pivotal.io/partners/splunk/installing.html#configure

EVENTS: A comma separated list of events to include. It is a required field. Possible values: ValueMetric,CounterEvent,Error,LogMessage,HttpStartStop,ContainerMetric.

@hanswurscht
Copy link
Author

hanswurscht commented Jul 28, 2022

To my knowledge this only works on a global scope and not individual per application.

@christianerbsmehl
Copy link

Yes, that's what I said. In our organization we have thousands of apps and for most of them, sending all events (including cf:logmessage) is fine. But for some, which are heavily used and/or have custom logging implemented, it would be nice to turn off cf:logmessage events on application level. Like you can turn off everything with F2S_DISABLE_LOGGING=true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants