On ingest I need to create a new field based on the value of a field in the document

Use a grok filter. Why should "fw" be extracted? Does X always begin with "fw"? Or do you want to extract everything up to the first period?