I've been trying to extract form data, from a huge file. I need a very specific pattern which so far fails me.
I have this consistent part of the log:
Machine info and user info blah blah blah [senderID=60, ipaddress=/10.1.1.11:8443, serviceIdinList=[13], serviceBitbox=11111, servicesList= | BeatController | BeatMaker | WaveShow, client=apache,
all lines appear like this.
From this line I need to make it look like this:
senderID=60, ipaddress=/10.1.1.11:8443, serviceIdinList=[13], serviceBitbox=11111, servicesList= | BeatController | BeatMaker | WaveShow,
*Note, everything after the "WaveShow," is irrelevant, as is everything before "senderID"
I've tried this command from a post here,
sed -n '/servicesList=/{s/.*servicesList=//;s/\S*=.*//;p}'
but it only prints out
servicesList= | BeatController | BeatMaker | WaveShow
I have tried to modify it in some iterations with regex, played with grep and sed but no progress