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

Lm logs fluentd plugin should not have the account domain hard coded #64

Conversation

choudharypooja
Copy link
Contributor

Allowing configurable company_domain for users with logicmonitor domain different from logicmonitor.com
Version - 1.2.3

@@ -77,7 +79,7 @@ def start
@http_client = Net::HTTP::Persistent.new name: "fluent-plugin-lm-logs", proxy: proxy_uri
@http_client.override_headers["Content-Type"] = "application/json"
@http_client.override_headers["User-Agent"] = log_source + "/" + LmLogsFluentPlugin::VERSION
@url = "https://#{@company_name}.logicmonitor.com/rest/log/ingest"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think logicmonitor.com should come from the variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes line 82 is the change
@url = "https://#{@company_name}.#{@company_domain}.com/rest/log/ingest"

@choudharypooja choudharypooja merged commit 73b52d2 into master Sep 19, 2024
1 check passed
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