Remove hashtags and trailing metadata from display fields using the cut command with delimiter # to sanitize log data.