Want to extract the logs based on keyword

Yes I have tried the multiline coded but it doesn't work.

What did you try?

Can you please share the sample configuration file that search for keyword "Hello" in the logfile.

See Accessing Event Data and Fields in the Configuration | Logstash Reference [5.4] | Elastic.