Windows- install .gem plugin td-agent

Hey,
I don’t know how basic this is but I went over the fluentd/td-agent documentation and I just can’t find how to add/install a plugin I downloaded.

I’ve downloaded a .gen plugin from Oracle and as the instructions says I opened td-agent cmd and used ‘td-agent-gem install fluent-plugin-oracle-omc-loganalytics-1.0.gem’
Which results in

ERROR: Could not find a valid gem ‘fluent-plugin-oracle-omc-loganalytics-1.0.gem’ (>= 0) in any repository

I can’t seem to figure where should I place the .gem file of direct the cmd to the plugin.

Guide: Install the Output Plug-In

Thanks

I succeeded to install it with td-agent 4.3.0 on Windows.

/opt/td-agent/bin/td-agent-gem install fluent-plugin-oracle-omc-loganalytics-1.0.gem

Installing ri documentation for json-schema-2.8.1
Parsing documentation for rr-3.0.9
Installing ri documentation for rr-3.0.9
Parsing documentation for test-unit-rr-1.0.5
Installing ri documentation for test-unit-rr-1.0.5
...
Parsing documentation for fluent-plugin-oracle-omc-loganalytics-1.0
Installing ri documentation for fluent-plugin-oracle-omc-loganalytics-1.0
Done installing documentation for json-schema, rr, test-unit-rr, iso8601, i18n, activesupport, ruby-duration, quantile, prometheus-client, fluent-plugin-promet
heus, fluent-plugin-oracle-omc-loganalytics after 7 seconds
11 gems installed

You need to run it under the same directory you download the .gem file.

Hey,
Thank you for the quick reply.

I’ve done exactly this running from the same directory but I’m getting the following errors:
File is located under C:\

c:>td-agent-gem install fluent-plugin-oracle-omc-loganalytics-1.0.gem
Fetching domain_name-0.5.20190701.gem
#<Thread:0x00000181af3c6ce8 C:/opt/td-agent/lib/ruby/2.7.0/rubygems/request_set.rb:168 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
7: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/request_set.rb:174:in block (2 levels) in install' 6: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/resolver/specification.rb:101:in download’
5: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/source.rb:207:in download' 4: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:154:in download’
3: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:306:in cache_update_path' 2: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems.rb:890:in write_binary’
1: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems.rb:890:in open' C:/opt/td-agent/lib/ruby/2.7.0/rubygems.rb:890:in initialize’: No such file or directory @ rb_sysopen - C:/opt/td-agent/lib/ruby/gems/2.7.0/cache/domain_name-0.5.20190701.gem (Errno::ENOENT)
Fetching unf_ext-0.0.8-x64-mingw32.gem
#<Thread:0x00000181af3c7580 C:/opt/td-agent/lib/ruby/2.7.0/rubygems/request_set.rb:168 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
7: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/request_set.rb:174:in block (2 levels) in install' 6: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/resolver/specification.rb:101:in download’
5: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/source.rb:207:in download' 4: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:154:in download’
3: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:306:in cache_update_path' 2: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems.rb:890:in write_binary’
1: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems.rb:890:in open' C:/opt/td-agent/lib/ruby/2.7.0/rubygems.rb:890:in initialize’: No such file or directory @ rb_sysopen - C:/opt/td-agent/lib/ruby/gems/2.7.0/cache/unf_ext-0.0.8-x64-mingw32.gem (Errno::ENOENT)
Fetching http-accept-1.7.0.gem
#<Thread:0x00000181af3c7aa8 C:/opt/td-agent/lib/ruby/2.7.0/rubygems/request_set.rb:168 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
7: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/request_set.rb:174:in block (2 levels) in install' 6: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/resolver/specification.rb:101:in download’
5: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/source.rb:207:in download' 4: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:154:in download’
3: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:306:in cache_update_path' 2: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems.rb:890:in write_binary’
1: from C:/opt/td-agent/lib/ruby/2.7.0/rubygems.rb:890:in open' C:/opt/td-agent/lib/ruby/2.7.0/rubygems.rb:890:in initialize’: No such file or directory @ rb_sysopen - C:/opt/td-agent/lib/ruby/gems/2.7.0/cache/http-accept-1.7.0.gem (Errno::ENOENT)
ERROR: While executing gem … (Errno::ENOENT)
No such file or directory @ rb_sysopen - C:/opt/td-agent/lib/ruby/gems/2.7.0/cache/http-accept-1.7.0.gem

Probably you need to launch command prompt as Administrator.

This was simple enough.
Working now,Thanks!