FireBall
asked on
Perl Awk Need Help
Hello Friends ,
As you should see the below log output some lines has ip address inside like that "92.233.188.149"
I want to get the lines which has an ip that is not 178.20.230.5 . and collect into arrays as this :
Source IP : 92.233.188.149
Time : 2016-04-05 17:50:33
Program : smil:output
Browser : Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36
Condition : connect cupertino
Should somebody help me to complete this please ....
As you should see the below log output some lines has ip address inside like that "92.233.188.149"
2016-04-05 17:50:33 EEST connect cupertino INFO 200 340286333 - _defaultVHost_ PT _definst_ 406920.367 178.20.230.5 1935 http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 92.233.188.149 http (cupertino) - Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36 340286333 0 0 - 0 - - output - - - - - http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 - http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 -
I want to get the lines which has an ip that is not 178.20.230.5 . and collect into arrays as this :
Source IP : 92.233.188.149
Time : 2016-04-05 17:50:33
Program : smil:output
Browser : Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36
Condition : connect cupertino
Should somebody help me to complete this please ....
2016-04-05 17:50:32 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.onPlaylist[PT/_definst_/PowerHD480P/playlist.m3u8?wowzasessionid=1298026624]: Not valid stream name [_defaultVHost_:PT/_definst_/PowerHD480P]: _defaultVHost_:PT/_definst_/PowerHD360P - - - 406919.666 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:32 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=37105911]: PowerTurkHD720P - - - 406919.711 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:33 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=943911989]: PowerTurkHD720P - - - 406919.788 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:33 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=968220314]: PowerTurkHD720P - - - 406919.814 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:33 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=979213471]: PowerTurkHD720P - - - 406919.913 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:33 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=1001057095]: PowerTurkHD720P - - - 406919.976 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:33 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=172369039]: PowerTurkHD720P - - - 406919.987 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:33 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=310705404]: PowerTurkHD720P - - - 406920.227 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:33 EEST connect cupertino INFO 200 340286333 - _defaultVHost_ PT _definst_ 406920.367 178.20.230.5 1935 http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 92.233.188.149 http (cupertino) - Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36 340286333 0 0 - 0 - - output - - - - - http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 - http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 -
2016-04-05 17:50:33 EEST create stream INFO 200 output - _defaultVHost_ PT _definst_ 0.0 178.20.230.5 1935 http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 92.233.188.149 http (cupertino) - Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36 340286333 0 0 50845 0 0 0 output - - - - - http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 - http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 -
2016-04-05 17:50:33 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.onPlaylist[PT/_definst_/PowerHD360P/playlist.m3u8?wowzasessionid=1275958006]: Not valid stream name [_defaultVHost_:PT/_definst_/PowerHD360P]: _defaultVHost_:PT/_definst_/PowerHD480P - - - 406920.734 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:34 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.onPlaylist[PT/_definst_/PowerHD480P/playlist.m3u8?wowzasessionid=1298026624]: Not valid stream name [_defaultVHost_:PT/_definst_/PowerHD480P]: _defaultVHost_:PT/_definst_/PowerHD360P - - - 406920.748 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:34 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=340286333]: PowerTurkHD720P - - - 406920.785 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:34 EEST stop stream INFO 200 output2 - _defaultVHost_ PT _definst_ 27.671 178.20.230.5 1935 http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 95.10.117.138 http (cupertino) - AppleCoreMedia/1.0.0.13E238 (iPhone; U; CPU OS 9_3_1 like Mac OS X; tr_tr) 1140204644 0 2508951 50842 6400503 0 2507732 output2 - output2 - 390 0.0 http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 - http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 -
2016-04-05 17:50:34 EEST destroy stream INFO 200 output2 - _defaultVHost_ PT _definst_ 27.671 178.20.230.5 1935 http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 95.10.117.138 http (cupertino) - AppleCoreMedia/1.0.0.13E238 (iPhone; U; CPU OS 9_3_1 like Mac OS X; tr_tr) 1140204644 0 2508951 50842 6400503 0 2507732 output2 - output2 - 390 0.0 http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 - http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 -
2016-04-05 17:50:34 EEST disconnect cupertino INFO 200 1140204644 - _defaultVHost_ PT _definst_ 406920.857 178.20.230.5 1935 http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 95.10.117.138 http (cupertino) - AppleCoreMedia/1.0.0.13E238 (iPhone; U; CPU OS 9_3_1 like Mac OS X; tr_tr) 1140204644 0 2508951 - 6400503 - - output2 - output2 - 390 0.0 http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 - http://178.20.230.5:1935/PT/smil:output2/playlist.m3u8 -
2016-04-05 17:50:34 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.onPlaylist[PT/_definst_/PowerHD360P/playlist.m3u8?wowzasessionid=1697373744]: Not valid stream name [_defaultVHost_:PT/_definst_/PowerHD360P]: _defaultVHost_:PT/_definst_/PowerHD480P - - - 406921.189 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:34 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.onPlaylist[PT/_definst_/PowerTurkHD480P/playlist.m3u8?wowzasessionid=1881411361]: Not valid stream name [_defaultVHost_:PT/_definst_/PowerTurkHD480P]: _defaultVHost_:PT/_definst_/PowerTurkHD360P - - - 406921.295 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:34 EEST play stream INFO 200 output - _defaultVHost_ PT _definst_ 0.956 178.20.230.5 1935 http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 92.233.188.149 http (cupertino) - Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36 340286333 0 1884 50845 6431063 0 0 output - output - 401 0.0 http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 - http://178.20.230.5:1935/PT/smil:output/playlist.m3u8 -
2016-04-05 17:50:34 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.onPlaylist[PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=430250022]: Not valid stream name [_defaultVHost_:PT/_definst_/PowerTurkHD720P]: _defaultVHost_:PT/_definst_/PowerTurkHD480P - - - 406921.409 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:35 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.onPlaylist[PT/_definst_/PowerHD480P/playlist.m3u8?wowzasessionid=1298026624]: Not valid stream name [_defaultVHost_:PT/_definst_/PowerHD480P]: _defaultVHost_:PT/_definst_/PowerHD360P - - - 406921.807 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:35 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=894439315]: PowerTurkHD720P - - - 406922.108 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:35 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=37105911]: PowerTurkHD720P - - - 406922.241 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:35 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=968220314]: PowerTurkHD720P - - - 406922.349 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:35 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=979213471]: PowerTurkHD720P - - - 406922.409 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:35 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=1001057095]: PowerTurkHD720P - - - 406922.542 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:35 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.getAppInstance: Stream not found [PT/_definst_/PowerTurkHD720P/playlist.m3u8?wowzasessionid=172369039]: PowerTurkHD720P - - - 406922.543 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:36 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.onPlaylist[PT/_definst_/PowerHD480P/playlist.m3u8?wowzasessionid=1298026624]: Not valid stream name [_defaultVHost_:PT/_definst_/PowerHD480P]: _defaultVHost_:PT/_definst_/PowerHD360P - - - 406922.871 - - - - - - - - - - - - - - - - - - - - - - - - -
2016-04-05 17:50:36 EEST comment server WARN 200 - HTTPStreamerAdapterCupertinoStreaming.onPlaylist[PT/_definst_/PowerHD360P/playlist.m3u8?wowzasessionid=1275958006]: Not valid stream name [_defaultVHost_:PT/_definst_/PowerHD360P]: _defaultVHost_:PT/_definst_/PowerHD480P - - - 406923.236 - - - - - - - - - - - - - - - - - - - - - - - - -
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER