Remove all URLs and emails from text

Hi,

I would like to remove all URLs and email addresses from plain text field. I suppose that gsub should be used like

mutate {
    gsub => ["text", "http\S+", ""]
  }

Please correct me if I'm wrong. And what about removing email addresses?
Thanks.

Yes, a gsub operation like that is the right approach. Finding regular expressions for email addresses and HTTP URLs shouldn't be more than a web search away.

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