Skip to content

Commit b66df66

Browse files
author
Yoichi Kawasaki
authored
Merge pull request #8 from catweisun/master
add endpoint parameter for sovereign cloud
2 parents 275762c + 7a7e7eb commit b66df66

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fluent-plugin-azure-loganalytics.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
2020

2121
gem.add_dependency "fluentd", [">= 0.14.15", "< 2"]
2222
gem.add_dependency "rest-client"
23-
gem.add_dependency "azure-loganalytics-datacollector-api", [">= 0.1.2"]
23+
gem.add_dependency "azure-loganalytics-datacollector-api", [">= 0.1.5"]
2424
gem.add_development_dependency "bundler", "~> 1.11"
2525
gem.add_development_dependency "rake", "~> 10.0"
2626
gem.add_development_dependency "test-unit"

lib/fluent/plugin/out_azure-loganalytics.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class AzureLogAnalyticsOutput < Output
1616
:desc => "Your Operations Management Suite workspace ID"
1717
config_param :shared_key, :string, :secret => true,
1818
:desc => "The primary or the secondary Connected Sources client authentication key"
19+
config_param :endpoint, :string, :default =>'ods.opinsights.azure.com',
20+
:desc => "The service endpoint"
1921
config_param :log_type, :string,
2022
:desc => "The name of the event type that is being submitted to Log Analytics. log_type only alpha characters"
2123
config_param :time_generated_field, :string, :default => '',
@@ -59,7 +61,7 @@ def configure(conf)
5961
def start
6062
super
6163
# start
62-
@client=Azure::Loganalytics::Datacollectorapi::Client::new(@customer_id,@shared_key)
64+
@client=Azure::Loganalytics::Datacollectorapi::Client::new(@customer_id,@shared_key,@endpoint)
6365
end
6466

6567
def shutdown

0 commit comments

Comments
 (0)