-7
trans(776800911)[10.173.36.75]: Request processing failed: Network Error, from URL: 10.173.36.73:57743
trans(776800912)[10.173.36.75]: Request processing failed: Network Error, from URL: 10.173.36.74:57743
trans(776800913)[10.173.36.75]: Request processing failed: Network Error, from URL: 10.173.36.75:57743

closed as unclear what you're asking by Henrik, steve, roaima, slm Aug 14 '18 at 20:33

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Just IPv4 addresses, or IPv6 too? – roaima Aug 14 '18 at 19:36
  • For each line, which IP address do you want? Or is it both? Do you want the port number too? – roaima Aug 14 '18 at 19:37
  • 2
    Finally (so far), what have you tried already? Please edit your question to include responses with this missing information. – roaima Aug 14 '18 at 19:37
  • 10.173.36.73 || 10.173.36.74 || 10.173.36.75 ,-- theses IP's I want to extract – khuharshree Aug 14 '18 at 19:39
  • 1
    The .75 IP shows up twice in line 3; are you trying to match it in a certain place in the line? – Jeff Schaller Aug 14 '18 at 20:07
1
$ grep -oP '\K[0-9.]+(?=:.*)' < ips.txt
10.173.36.73
10.173.36.74
10.173.36.75
  • Thanks for your reply . Sorry , I forgot to mention that I am looking for splunk rex expression to get the IP's – khuharshree Aug 14 '18 at 20:01
  • 3
    Could you add this in your original question so that it might be helpful for others? – daniel Azuelos Aug 14 '18 at 20:15

Not the answer you're looking for? Browse other questions tagged or ask your own question.