I have posted my action here. The report has a range, but it's fixed and not dynamic.
"actions" : {
"email_admin" : {
"email": {
"to": ["stonerd@longwood.edu"],
"subject": "DBA Weekly Activity Report",
"body": {
"text": "DBA weekly activity report to be reviewed by department director."
},
"attachments" : {
"dba_report.csv" : {
"reporting" : {
"url": "https://visualize.longwood.edu:5601/api/reporting/generate/csv?jobParams=(conflictedTypesFields:!(),fields:!(extended_timestamp,username,ClientPC-UserName,Client-Computer,action_name,sql_text),indexPatternId:%270a9d2a90-7d62-11e9-a87f-6f4811b86fe0%27,metaFields:!(_source,_id,_type,_index,_score),searchRequest:(body:(_source:(excludes:!(),includes:!(extended_timestamp,username,ClientPC-UserName,Client-Computer,action_name,sql_text)),docvalue_fields:!(),query:(bool:(filter:!((match_all:())),must:!((bool:(minimum_should_match:1,should:!((match_phrase:(username:landisng)),(match_phrase:(username:eriksonjw)),(match_phrase:(username:pencefj))))),must_not:!((bool:(minimum_should_match:1,should:!((match_phrase:(action_name:LOGON)),(match_phrase:(action_name:LOGOFF)))))),should:!())),script_fields:(),sort:!((%27@timestamp%27:(order:desc,unmapped_type:boolean))),stored_fields:!(extended_timestamp,username,ClientPC-UserName,Client-Computer,action_name,sql_text),version:!t),index:%27oracle2-*%27),title:%27DBA%20Review%20File%20v2%27,type:search)",
"retries":6,
"interval":"20s",
"auth":{
"basic":{
"username":"elastic",
"password":"somepasswordhere"
}
}