Hi I am using very simple configuration.
Receive strings from TCP input and write to a file
Sent string
This is new string 8
Written in to file
2022-09-21T12:36:28.278922Z %{host} This is new string 8
I want to avoid the timestamp and%{host} in the file
One more small query, I could see Hostname getting populated as Ip address when I use UDP but when I use TCP it is displaying as %{host}. Any clue Badger?
thanks in advance.
That suggests that when using a tcp input the [host] field does not exist. That would be strange. I would expect it to be a hash, and the output to contain "{name=1.2.3.4}", or whatever your IP is (unless the name can be looked up).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.