Downloading Elasticsearch Repository due to Restricted Access"

61 views
Skip to first unread message

Sidra Siddique

unread,
Aug 24, 2023, 6:00:45 AM8/24/23
to Wazuh | Mailing List
Hi Wazuh team,

Is it feasible to download the Elasticsearch repository from artifacts.elastic.co onto a local virtual machine, considering that the Elasticsearch website is inaccessible due to regional restrictions? Subsequently, could this repository then be transferred and imported onto another server?

Regards,
Sidra

Harshal Paliwal

unread,
Aug 24, 2023, 11:29:19 PM8/24/23
to Wazuh | Mailing List
Hi Sidra, Thanks for using Wazuh!

Yes, it is feasible to download Elasticsearch from artifacts.elastic.co onto a local virtual machine and then transfer/import it onto another server. This approach can be useful when you're facing regional restrictions that prevent direct access to Elasticsearch's website.Here's a general outline of the steps you can follow:1. **Download Elasticsearch on a Local Virtual Machine:**   - Access the Elasticsearch artifacts repository at https://artifacts.elastic.co/.
   - Choose the Elasticsearch version you want to download.
   - Download the appropriate Elasticsearch package for your operating system (e.g., RPM or DEB for Linux, MSI for Windows, TAR/GZ for generic Linux, or macOS).
   - Transfer this package to your local virtual machine.2. **Transfer the Elasticsearch Package to Another Server:**   - Use secure file transfer methods like SCP (Secure Copy Protocol), SFTP (Secure File Transfer Protocol), or tools like `rsync` to transfer the downloaded Elasticsearch package from your local virtual machine to the target server.3. **Import and Install Elasticsearch on the Target Server:**   - On the target server, you'll need to have the Elasticsearch package you transferred in a directory.
   - Install Elasticsearch using the package manager specific to your operating system. For example, if you downloaded an RPM package, you can use `yum` or `dnf` on CentOS/RHEL, or `zypper` on openSUSE. If it's a DEB package, you can use `apt` on Debian/Ubuntu.     For RPM:
     sudo rpm -ivh elasticsearch-version.rpm
     For DEB:
     sudo dpkg -i elasticsearch-version.deb
   - After installation, you may need to configure Elasticsearch's settings as per your requirements. Configuration files are typically located in the `/etc/elasticsearch/` directory.4. **Start and Enable Elasticsearch:**   - You can start and enable Elasticsearch as a service on your server to ensure it runs automatically on boot.     For systems using `systemd` (most modern Linux distributions):
     sudo systemctl start elasticsearch
     sudo systemctl enable elasticsearch
   - On older systems using `init.d`, you might use commands like `service elasticsearch start` and `chkconfig elasticsearch on`.5. **Verify Elasticsearch Installation:**   - Confirm that Elasticsearch is running and accessible on the target server by visiting `http://localhost:9200` in a web browser or using tools like `curl`.By following these steps, you should be able to download Elasticsearch on a local virtual machine, transfer it to another server, and successfully import and install it on that server, even if direct access to the Elasticsearch website is restricted in your region.

Sidra Siddique

unread,
Aug 25, 2023, 4:11:47 AM8/25/23
to Wazuh | Mailing List
Thanks, But could you please explain that how to transfer a file using SCP from Local VM to remote host?

Harshal Paliwal

unread,
Aug 28, 2023, 5:05:52 AM8/28/23
to Wazuh | Mailing List
Hi Sidra,
Sorry for late response.

You can follow this link  to transfer a file using SCP from Local VM to remote host.
Hope this will be helpful. Please feel free to contact us for any information/issues

Reagrds,
Reply all
Reply to author
Forward
0 new messages