Config File Options
If you're making a request to an external import file/url and it requires additional validation you can use the datagrab_custom_headers config option. In this example 6 is the import ID to assign these headers to.
$config['datagrab_custom_headers'] = [
6 => [
'Content-Type: application/json',
'Authorization: Bearer YOUR_ACCESS_TOKEN'
]
];
If you want to disable verifying peers when making a cURL request you can set this to 'n'.
$config['datagrab_verify_peer'] = 'n';
By default DataGrab will write to the system/user/cache/DataGrab-import.log
file each time an import is executed, and erase the log contents from the previous import and replace it with the currently executing import. If you want to keep a backup of the log files you will want to enable log rotate, which will append a timestamp to the end of of the file. If you do this you may want to consider deleting old backups, which will require a simple bash script.
$config['datagrab_rotate_log'] = 'y';
Last updated
Was this helpful?