How to get a string from logs file

hello to the whole community.

Can I ask you for help to solve a problem?

In practice I would need to get a string from the daytime logs file; but I do not know how I can do it.

Could anyone suggest me a solution for my problem?

Thanks in advance