It does not seem that there is any switch or configuration variable that can be used with insights-client to specify the archive file name in the command line. If a user wants to specify the archive file name or know it without extracting it from the insights-client output, he will not be able to do it.
[user@hostname ~]# insights-client --offline
Starting to collect Insights data for [hostname]
Archive saved at /var/tmp/5s57d784/insights-[hostname]-20190703203857.tar.gz
To address this issue, an additional switch like --archive can be added so that the insights-client command can also be executed as follows.
[user@hostname ~]# insights-client --offline --archive /var/tmp/test
Starting to collect Insights data for [hostname]
Archive saved at /var/tmp/test.tar.gz
It does not seem that there is any switch or configuration variable that can be used with
insights-clientto specify thearchivefile name in the command line. If a user wants to specify thearchivefile name or know it without extracting it from theinsights-clientoutput, he will not be able to do it.To address this issue, an additional switch like
--archivecan be added so that theinsights-clientcommand can also be executed as follows.