You have a file output and you want it to contain the current contents of the message field and nothing else? See the example in the file output documentation:
output {
file {
path => ...
codec => line { format => "custom format: %{message}"}
}
}