Newer Version Available

This content describes an older version of this product. View Latest

Download Large Event Log Files Using cURL with REST

You might have some event log files that are larger than your tool can handle. A command line tool such as cURL is one method to download files larger than 100 MB using the sObject Blob Get object
Example: Use the “X-PrettyPrint” header and the “-o” flag to output large files to .csv formats
This command downloads a file onto your machine into your downloads folder.
1curl https://MyDomainName.my.salesforce.com/services/data/v65.0/sobjects/EventLogFile/0AT30000000000uGAA/LogFile
2-H "Authorization: Bearer token" -H "X-PrettyPrint:1" -o ~/downloads/outputLogFile.csv

We recommend using compression when downloading large event log files. See Compression Headers.