You need to sign in to do that
Don't have an account?
sarah john 4
How to download webDAV files from a linux server
Hello All hope are doing good, I have several log files in a webDAV (salesforce SFDC logs repo) and I want to drop all of them to a linux server, so that I can feed them to Splunk Server Class. I am not sure if there is a better idea than this, please advise.
Thanks
Sarahjohn
Thanks
Sarahjohn
Running wget with quotes over all three links from the comment was successful, not to mention my wget is lower by version than yours, i.e. 1.15. Note: Also, do not leave the right slash at the end of the link as it directs wget to the wrong way (it treats those links as directories). Apart from this, there is a course like Splunk Certification (https://www.igmguru.com/course/splunk-training/) available for different learning.
1. Install the packages cadaver and davfs2 on your Linux server.
2. Use the davfs2 command to mount the webDAV folder. For instance, type "sudo mount -t davfs https://webdav.example.com /mnt/webdav". The webDAV folder will be mounted to /mnt/webdav.
3. Use the command "cd /mnt/webdav" to navigate to the mounted folder.
4. To list the files in the webDAV folder, use the "ls" command.
5. To download a file, use the "get" command. "get logfile.txt," for example, will download the file "logfile.txt" to your current working directory.
6. Step 5 should be repeated for each file you want to download.
After you've downloaded all of the log files, you can upload them to the Splunk (https://www.igmguru.com/salesforce/salesforce-administration-training/) server. Splunk can also be configured to read log files straight from the webDAV subdirectory.