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

optimizing logstash #90

Merged
merged 2 commits into from
Oct 10, 2024
Merged

optimizing logstash #90

merged 2 commits into from
Oct 10, 2024

Conversation

JasonTheMain
Copy link
Contributor

Changes proposed in this pull request:

  • This will remove old versions of cf and platform logs from filtering

Security considerations

None

@JasonTheMain JasonTheMain requested a review from a team as a code owner October 10, 2024 19:17
bengerman13
bengerman13 previously approved these changes Oct 10, 2024
Copy link
Contributor

@bengerman13 bengerman13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'd be better deleting rather than commenting, since git has the history if we ever need it. Otherwise, I think this all makes sense

Comment on lines 7 to 9
# if [syslog_program] == "nats_to_syslog" {
# <%= File.read('src/logstash-filters/snippets/bosh_nats.conf').gsub(/^/, ' ') %>
# }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason to comment rather than just delete?

<%= File.read('src/logstash-filters/snippets/platform-uaa.conf') %>
<%= File.read('src/logstash-filters/snippets/platform-vcap.conf') %>
<%= File.read('src/logstash-filters/snippets/platform-gorouter.conf') %>
# <%= File.read('src/logstash-filters/snippets/platform.conf') %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question - can we delete instead of comment?

if [syslog_program] == "nats_to_syslog" {
<%= File.read('src/logstash-filters/snippets/bosh_nats.conf').gsub(/^/, ' ') %>
}
# if [syslog_program] == "nats_to_syslog" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete instead of comment?

<%= File.read('src/logstash-filters/snippets/platform-uaa.conf') %>
<%= File.read('src/logstash-filters/snippets/platform-vcap.conf') %>
<%= File.read('src/logstash-filters/snippets/platform-gorouter.conf') %>
# <%= File.read('src/logstash-filters/snippets/platform.conf') %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I bet you know what I'm going to ask here ;)

@JasonTheMain JasonTheMain merged commit 763f61b into main Oct 10, 2024
@JasonTheMain JasonTheMain deleted the logstash-trim branch October 10, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants