Truncate log key to exclude everything after the last slash.

/cc @wsorenson