Sure, you need to configure translation patters to match the last 4 digits and prefix the 404, so assume the extensions begin with 2, you would create a TP 2XXX in partition reachable by the phones that dial it, the TP will prefix 404 and that's it.
Keep in mind that any time you deal with variable length dial plan you need to ensure there is no overlaps, for example if you have an extension such as 405X, and a user attempts to call it it will match both the TP as well as the route to 405 switch, you will end up with an interdigit timeout.
These are the paths to get to each CCX logs through CLI. They may be helpful if you are having issues accessing RTMT or downloading logs through it.
If you want to download them you have to prefix "file get " and you can add one of the options (re...