New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Highlighted
Absent Member.
Absent Member.
862 views

Output Filter: Select Line Starting With.. How you select this OR that...

Sample output i am filtering: 

{SESSION_ON=true;returnCode=0;STDERR=mesg: ttyname failed: Invalid argument
;returnResult=Last failed login: Sat Apr 1 08:37:22 EDT 2017 from xxxxxxxx.com on ssh:notty
There were 4 failed login attempts since the last successful login.
wasadmin
;TimedOut=false;STDOUT=Last failed login: Sat Apr 1 08:37:22 EDT 2017 from xxxxxxxxxx.com on ssh:notty
There were 4 failed login attempts since the last successful login.
hriiuser
;exitStatus=0;Result=Last failed login: Sat Apr 1 08:37:22 EDT 2017 from xxxxxxxx.com on ssh:notty
There were 4 failed login attempts since the last successful login.
hriiuser
;}

I can do a "select line starting with" hriiuser and it works.

I want to do a ""select line starting with" hriiuser OR wasadmin

Is there a way to put 2 variables into this filter?

 

0 Likes
4 Replies
Highlighted
Captain
Captain

Use Regular expression filter

Expression Type: Java Style

Expression Value: ^(wordx|wordy|wordz).*

filter style: FilteR Line-by-Line

0 Likes
Highlighted
Cadet 3rd Class Cadet 3rd Class
Cadet 3rd Class

Spoiler
^(word[xyz]).*
The bracket denotes that any single character in the bracket is acceptable.
0 Likes
Highlighted
Captain
Captain

returnResult=Last failed login: Sat Apr 1 08:37:22 EDT 2017 from xxxxxxxx.com on ssh:notty
There were 4 failed login attempts since the last successful login.
wasadmin

 

STDOUT=Last failed login: Sat Apr 1 08:37:22 EDT 2017 from xxxxxxxxxx.com on ssh:notty
There were 4 failed login attempts since the last successful login.
hriiuser

 

Result=Last failed login: Sat Apr 1 08:37:22 EDT 2017 from xxxxxxxx.com on ssh:notty
There were 4 failed login attempts since the last successful login.
hriiuser

Assuimg you gae us complete string, your wasadmin is in returnResult and hriiuser is in STDOUT and Result. I dont see the reason to do OR here.  Your search keys are in different results

0 Likes
Highlighted
Captain
Captain

@markking i was just giving him/her an example. The string that he/she was looking for are the real words with no match Eg: wasadmin, hriiuser.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.