Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Implement a Logging Solution for HashiCorp Vault

As part of this hands-on lab, you will be required to configure HashiCorp logging, and set up log file syncing with a remote server.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 04, 2025
Duration
1h 0m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Enable HashiCorp Vault Logs
    1. In the Vault Server, retrieve the vault keys.
    2. Unseal the vaults.
    3. Log in with the Initial Root Token.
    4. Enable logs.
    5. Access the logs.
  2. Challenge

    Enable Key-Based SSH Authentication to a Backup Server
    1. In the Vault Server, generate a new key.
    2. Copy the new ssh-rsa key.
    3. In the Client Server, add the key to the authorized_keys file.
    4. Save the file.
    5. Open the sshd_config file.
    6. Enable key-based authentication by uncommenting the PubKeyAuthentication Yes line.
    7. Save the file.
    8. Apply the changes.
  3. Challenge

    Use Rsync to Create Log Backups on the Vault Server
    1. In the Vault Server, make a new directory.
    2. Create a test file in the directory.
    3. Populate the file with generic data.
    4. Using rsync, sync the test file between the two servers.
    5. In the Vault Server, configure a trigger for file sync.
    6. Add the cloud_user to the incron.allow file.
    7. Save the file.
    8. Create a directory on the Client server to hold the logs.
    9. In the Vault Server, update the log permissions.
    10. In the Vault Server, create a new job.
    11. In the new file, paste the following.
    12. In the Vault Server, enable a kv secrets engine.
    13. In the Client server, run the command to test the setup.

    Note: You can find the Vault Server domain by running cat Domain.

    1. Generate a GET request and check if the logs have been synced.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight