Extracting Domain from URL

Untested:

filter {
  grok {
    match => ["URL", "\.(?<Domain>[^.]+\.[^.]+)$"]
  }
}

Splitting the string on each period, grabbing the two last elements, and joining them back together should be a lot more efficient though.