code: def _FormatHostname(self, event):
      
      hostname = self._output_mediator.GetHostname(event)
      return self._SanitizeField(hostname)
docs: Formats the hostname.
  
      Args:
        event (EventObject): event.
  
       Returns:
         str: formatted hostname field.