In this new directory extract the git archive or execute a git clone
Now create a new archive that contains the directory kibana
You have now an archive with kibana/traffic/content_of_archive
You can now run ./kibana-plugin install file://....
I did it , but i have another error :
Attempting to transfer from file:////usr/share/kibana/Traffic/kibana-plugin-traffic-sg.zip
Transferring 491520 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Error: end of central directory record signature not found
at /usr/share/kibana/node_modules/yauzl/index.js:187:14
at /usr/share/kibana/node_modules/yauzl/index.js:631:5
at /usr/share/kibana/node_modules/fd-slicer/index.js:32:7
at FSReqWrap.wrapper [as oncomplete] (fs.js:467:17)
Plugin installation was unsuccessful due to error Error retrieving metadata from plugin archive
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.