# Offline plugin install logstash-filter-date\_formatter on logstash 7.4.2

**URL:** <https://discuss.elastic.co/t/offline-plugin-install-logstash-filter-date-formatter-on-logstash-7-4-2/248514>\
**Category:** Logstash\
**Created:** [September 14, 2020, 10:59am UTC](https://discuss.elastic.co/t/offline-plugin-install-logstash-filter-date-formatter-on-logstash-7-4-2/248514 "2020-09-14T10:59:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![goncalobsantos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goncalobsantos/32/50118_2.png) [@goncalobsantos](https://discuss.elastic.co/u/goncalobsantos)\
**Post date:** [September 14, 2020, 10:59am UTC](https://discuss.elastic.co/t/offline-plugin-install-logstash-filter-date-formatter-on-logstash-7-4-2/248514/1 "2020-09-14T10:59:19Z")

</div>

I downloaded the zip file with the plugin from Github: [https://github.com/wiibaa/logstash-filter-date\_formatter](https://github.com/wiibaa/logstash-filter-date_formatter)

I followed the documentation [here](https://www.elastic.co/guide/en/logstash/current/offline-plugins.html), and tried installing the plugin by running the command:

```
./logstash-plugin install /tmp/logstash-filter-date_formatter-master.zip

```

However I get a 403 error. I don't understand why this is happening. I assumed that after downloading the zip file from Github, internet access was no longer requiered.

```
ERROR: Something went wrong when installing /tmp/logstash-filter-date_formatter-master.zip, message: 403 "Forbidden"

```

Any ideas how to get around this problem?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![goncalobsantos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goncalobsantos/32/50118_2.png) [@goncalobsantos](https://discuss.elastic.co/u/goncalobsantos)\
**Post date:** [September 14, 2020, 2:56pm UTC](https://discuss.elastic.co/t/offline-plugin-install-logstash-filter-date-formatter-on-logstash-7-4-2/248514/2 "2020-09-14T14:56:47Z")

</div>

I realized that my command was incomplete. It should be:

```auto
./logstash-plugin install file:///tmp/logstash-filter-date_formatter-master.zip

```

However, now I get the following error:

```
ERROR: Invalid pack for: file:///tmp/logstash-filter-date_formatter-master.zip, reason; The pack must contains at least one plugin, message: The pack must contains at least one plugin.

```

I have also tried installing the corresponding gem file, but then I get the error:

` ERROR: Invalid pack for: file:///tmp/logstash-filter-date_formatter-2.0.0.gem, reason; Ivalid format, the pack must be in zip format, message: Invalid format, the pack must be in zip format`

It seems that the solution involves a different zip file. According to the [documentation](https://www.elastic.co/guide/en/logstash/7.x/offline-plugins.html), I must generate it using the (partial) command:

```
bin/logstash-plugin prepare-offline-pack

```

However, I'm not sure what should be complete command.

---

<div class="post-metadata">

**Author:** ![goncalobsantos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goncalobsantos/32/50118_2.png) [@goncalobsantos](https://discuss.elastic.co/u/goncalobsantos)\
**Post date:** [September 16, 2020, 8:28am UTC](https://discuss.elastic.co/t/offline-plugin-install-logstash-filter-date-formatter-on-logstash-7-4-2/248514/3 "2020-09-16T08:28:33Z")

</div>

In case this might be helpfull for someone else, here's how I managed to install the plugin offline:

1. To follow the [documentation](https://www.elastic.co/guide/en/logstash/7.x/offline-plugins.html), I first had to create a stagging machine with access to the internet.

1.1 With Hyper-V on my Windows machine, I created a virtual CentOS7 machine with access to the internet, installed Logstash in it and installed the plugin using the command:

```
./logstash-plugin install logstash-filter-date_formatter

```

1. From then on, I could start following the documentation.

2.1 The correct zip file was created with the command:

```
./logstash-plugin prepare-offline-pack logstash-filter-date_formatter

```

2.2 I moved this file to my offline machine and installed it with the command:

```
./logstash-plugin install file:///tmp/logstash-offline_plugins-7.4.2.zip
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 14, 2020, 8:29am UTC](https://discuss.elastic.co/t/offline-plugin-install-logstash-filter-date-formatter-on-logstash-7-4-2/248514/4 "2020-10-14T08:29:07Z")

</div>

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