Older version Link in machine learning mail alerts doesnt work with 7.12

Hi Im tring to send ML alert mail with the link to the anomaly explorer, im using the older version of the link (7.5) but it doesnt seems to work in the newer version 7.12

    <a href="<es_url>/app/ml#/explorer/?_g=(ml:(jobIds:!('{{ctx.payload.aggregations.bucket_results.top_bucket_hits.hits.hits.0._source.job_id}}')),time:(from:'{{ctx.payload.aggregations.bucket_results.top_bucket_hits.hits.hits.0.fields.start.0}}',mode:absolute,to:'{{ctx.payload.aggregations.bucket_results.top_bucket_hits.hits.hits.0.fields.end.0}}'))&_a=(explorer:(mlExplorerSwimlane:(selectedLanes:!(Overall),selectedTimes:{{ctx.payload.aggregations.bucket_results.top_bucket_hits.hits.hits.0.fields.timestamp_epoch.0}},selectedType:overall)),query:(query_string:(analyze_wildcard:!t,query:'*')))">

it get to de page but gets stuck, and doesnt show anything

what I have to modify to get the link working?

its seems that they are in diferent format

older version of the url works on 7.5

https://127.0.0.1:9977/app/ml/explorer?_g=%28ml:%28jobIds:!%28%27saam_high_severity_ips_exploit_fortigate%27%29%29,refreshInterval:%28display:Off,pause:!f,value:0%29,time:%28from:%272021-04-30T12:14:00.000Z%27,mode:absolute,to:%272021-04-30T12:34:00.000Z%27%29%29&_a=%28filters:!%28%29,mlAnomaliesTable:%28intervalValue:auto,thresholdValue:0%29,mlExplorerSwimlane:%28selectedLane:Overall,selectedTime:1619785440,selectedType:overall%29,query:%28query_string:%28analyze_wildcard:!t,query:%27*%27%29%29%29

newer version 7.12

https://127.0.0.1:9977/app/ml/explorer?_g=%28ml%3A%28jobIds%3A%21%28ibm_high_severity_ips_exploit_fortigate%29%29%2CrefreshInterval%3A%28display%3AOff%2Cpause%3A%21t%2Cvalue%3A0%29%2Ctime%3A%28from%3A%272020-11-13T21%3A54%3A07.000Z%27%2Cto%3A%272021-05-02T21%3A25%3A00.000Z%27%29%29&_a=%28explorer%3A%28mlExplorerFilter%3A%28%29%2CmlExplorerSwimlane%3A%28viewByFieldName%3Ahost.name.keyword%2CviewByFromPage%3A1%2CviewByPerPage%3A10%29%29%2Cquery%3A%28query_string%3A%28analyze_wildcard%3A%21t%

@gmmorris another one which needs your input ..Thank you

Hi @ElasticLiver ,
I'm a little confused, as I'm not sure which feature you're referring to.

Can you point me to the docs for the specific alert type you're trying to use?

Thanks

Hi @ElasticLiver,

As part of improving navigation experience in 7.11
we changed the URL structure. The recent Kibana version supports an older URL structure, i.e. URLs from Kibana 7.5 work in 7.11+ but not vice versa.

I'd recommend if possible to use the relevant Kibana version.

Also, your example from the 7.5 KIbana seems like a new format actually (we used to have # in the older version).
And the URL from 7.12 is malformed, I tried to decode it and received an error. Seems like the end of the URL is cut off.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.