Hey Team, We want to send edr report on slack. We ...
# community-support
m
Hey Team, We want to send edr report on slack. We have stored slack_token & channel name in config.yml. We are getting error with following command error-
Copy code
elementary.exceptions.exceptions.InvalidArgumentsError: You must provide a platform to upload the report to (Slack token / S3 / GCS).
command-
Copy code
edr send-report --config-dir /workspaces/exm6d1rpt6eu6k0b/repository/config.yml
βœ… 1
m
essentially we cannot use cli variables due to our limitation on the execution environment(which is paradime in case you are wondering). Leaves us only with config file setup and now looking at this thread, am bit curious what should we do?
@Daniel Pollak @Maayan Salom sorry for the tag but validation of slack connectivity is crucial for us ATM
d
@Munuganti Sai Anil Kumar try to run -
edr send-report --config-dir /workspaces/exm6d1rpt6eu6k0b/repository/
, without the
config.yml
in the end. This parameter should be the directory path, and not the full path of the config file
m
@Daniel Pollak It’s working. Thanks a lot.
d
No problem !!elementary
m
@Daniel Pollak on the same lines, do you have equivalent of
EDR_REPORT_FILE_PATH
for send-report-config file? CC: @Mandar @Fabio di Leta
d
@Munuganti Sai Anil Kumar Yes - whatever command you're using:
EDR_SEND_REPORT_CONFIG_DIR
EDR_REPORT_CONFIG_DIR
πŸ™Œ 2
m
thanks a ton
We are able to share reports to slack sucessfully. Thanks for this. Last question on the same thread as its a bit related. As per the docs here, I am expecting the alert with
see more
hyperlink. does it only work with cloud version? the report that we are getting is as attached.
@Daniel Pollak ☝️
d
@Munuganti Sai Anil Kumar you don't have any failures, so there nothing more to show πŸ™‚
πŸ™Œ 1
l
This parameter should be the directory path, and not the full path of the config file
@Daniel Pollak Had the same issue today and was about to give up πŸ˜„ Maybe it would be useful to add an example to the docs? πŸ‘€