Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I am setting up a watch group for a text log to look for two pieces of text. What is the difference between adding a second text key, versus using the second field in the first text key?

0
Posted

I am setting up a watch group for a text log to look for two pieces of text. What is the difference between adding a second text key, versus using the second field in the first text key?

0

A text key is one or two pieces of text in some combination. Each key in the watch group is applied to every line in the log that LogWatcher reads out. So, if you want to look for lines with BOTH pieces of text occurring, use one key with two fields, and make sure you specify ‘Both Key 1 and Key 2′. However, if you want to look for any lines that contain either of two keys, you can define two separate keys with one field each, OR, you can define a single key with two fields, and make sure you specify “Either Key 1 or Key 2’. This second option makes for a cleaner tree.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123