function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sarah john 4sarah 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.

Rahul Sharma 718Rahul Sharma 718
Try to enclose links in quotes if it throws syntax errors, international characters are converted to Unicode by default. wget accepts multiple arguments simultaneously.

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.
wget "" "" ""
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 ( available for different learning.
Vivek Garg 13Vivek Garg 13
You can use the "cadaver" command-line client to download webDAV files from a Linux server, or you can mount the webDAV folder as a filesystem using "davfs2" and then copy the files to your Linux server. The steps are as follows:

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 /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 ( server. Splunk can also be configured to read log files straight from the webDAV subdirectory.