How to install plugin with .gem file?

./logstash-plugin install file:///opt/ES/logstash-filter-ip2location-1.0.2.gem 
ERROR: Invalid pack for: file:///opt/ES/logstash-filter-ip2location-1.0.2.gem, reason: Invalid format, the pack must be in zip format, message: Invalid format, the pack must be in zip format

How did you obtain this gem file?

from https://rubygems.org/
https://github.com/ip2location/logstash-filter-ip2location

use a machine can connect to network .
use logstash-plugin install logstash-filter-ip2location install this
and use logstash-plugin output this filter plugin
slove it.
thanks all.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.