- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
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.
Lab Info
Table of Contents
-
Challenge
Enable HashiCorp Vault Logs
- In the Vault Server, retrieve the vault keys.
- Unseal the vaults.
- Log in with the
Initial Root Token. - Enable logs.
- Access the logs.
-
Challenge
Enable Key-Based SSH Authentication to a Backup Server
- In the Vault Server, generate a new key.
- Copy the new
ssh-rsakey. - In the Client Server, add the key to the
authorized_keysfile. - Save the file.
- Open the
sshd_configfile. - Enable key-based authentication by uncommenting the
PubKeyAuthentication Yesline. - Save the file.
- Apply the changes.
-
Challenge
Use Rsync to Create Log Backups on the Vault Server
- In the
Vault Server, make a new directory. - Create a test file in the directory.
- Populate the file with generic data.
- Using
rsync, sync thetestfile between the two servers. - In the
Vault Server, configure a trigger for file sync. - Add the
cloud_userto theincron.allowfile. - Save the file.
- Create a directory on the
Clientserver to hold the logs. - In the
Vault Server, update the log permissions. - In the
Vault Server, create a new job. - In the new file, paste the following.
- In the
Vault Server, enable akvsecrets engine. - In the
Clientserver, run the command to test the setup.
Note: You can find the Vault Server domain by running
cat Domain.- Generate a GET request and check if the logs have been synced.
- In the
About the author
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.