grep search for multiple lines matching multiple strings

 

example

grep -E "An exception occurred in the action calling interface | WS statistics interface returned result: null" app-ncng.log

 

[test@TEST007 log]$ grep -E "Action call interface exception | WS statistics interface return result: null" app-ncng.log
09:44:21,838 ERROR [com.mc.action.Action10090] (http--172.32 .51.7-8406-3) An exception occurred in the Action call interface: the request parameters are not complete
09:44:21,839 INFO [com.mc.action.Action10021] (http--172.32.51.7-8406-3) WS statistics interface return result: null
10:25:40,735 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-3) An exception occurred in the Action call interface: the request parameters are incomplete
10:25:40,736 INFO [com.mc.action.Action10021 ] (http--172.32.51.7-8406-3) WS statistics interface return result: null
10:26:06,401 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-4) Action calling interface An exception occurred: Incomplete request parameters
10:26:06,402 INFO [com.mc.action.Action10021] (http--172.32.51.7-8406-4) WS statistics interface return result: null
10:42:03,967 ERROR [com.mc .action.Action10090] (http--172.32.51.7-8406-1) An exception occurred in the Action call interface: the request parameters are incomplete
10:42:03,967 INFO [com.mc.action.Action10021] (http--172.32.51.7-8406-1) WS statistics interface return result: null
10:45:09,131 ERROR [com.mc.action.Action10090] ( http--172.32.51.7-8406-2) Action call interface exception: incomplete request parameters
10:45:09,132 INFO [com.mc.action.Action10021] (http--172.32.51.7-8406-2) WS statistics interface Return result: null
10:49:28,497 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-2) An exception occurred in the Action call interface: the request parameters are incomplete
10:49:28,497 INFO [com.mc .action.Action10021] (http--172.32.51.7-8406-2) WS statistics interface return result: null
10:52:33,128 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-2 ) Action call interface exception: incomplete request parameters
10:52:33,129 INFO [com.mc.action.Action10021] (http--172.32.51.7-8406-2) WS statistics interface return result: null
11:00:36,759 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-4) An exception occurred in the Action call interface: the request parameters are incomplete
11:00:36,760 INFO [com.mc.action.Action10021] (http--172.32.51.7-8406-4) WS statistics interface return result: null
11:10:45,228 ERROR [com.mc.action.Action10090] ( http--172.32.51.7-8406-2) Action call interface exception: incomplete request parameters
11:10:45,229 INFO [com.mc.action.Action10021] (http--172.32.51.7-8406-2) WS statistics interface Returned result: null
11:11:05,754 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-4) An exception occurred in the Action calling interface: the request parameters are incomplete
11:11:05,755 INFO [com.mc .action.Action10021] (http--172.32.51.7-8406-4) WS statistics interface return result: null
11:12:42,992 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-1 ) Action call interface exception: incomplete request parameters
11:12:42,992 INFO [com.mc.action.Action10021] (http--172.32.51.7-8406-1) WS statistics interface return result: null
13:57:52,474 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-3) An exception occurred in the Action call interface: the request parameters are incomplete
13:57:52,475 INFO [com.mc.action.Action10021] (http--172.32.51.7-8406-3) WS statistics interface return result: null
14:06:55,332 ERROR [com.mc.action.Action10090] ( http--172.32.51.7-8406-3) Action call interface exception: incomplete request parameters
14:06:55,333 INFO [com.mc.action.Action10021] (http--172.32.51.7-8406-3) WS statistics interface Return result: null
14:12:53,170 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-4) An exception occurred in the Action calling interface: the request parameters are not complete
14:12:53,171 INFO [com.mc .action.Action10021] (http--172.32.51.7-8406-4) WS statistics interface return result: null

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327082238&siteId=291194637