My text file looks like below
date=\"2017-10-10\" ip=192.168.1.1:22 inbound=100 outbound=100 date=\"2017-10-10\" ip=192.168.1.1:22 inbound=100 date=\"2017-10-10
Using GNU awk
awk '{print match($0,/inbound=([0-9]+)/,a)?a[1]:0}' file
In perl
perl -lne 'print /inbound=(\d+)/?$1:0' file
In sed
sed 's/.*inbound=\([0-9]\+\).*/\1/;t;s/.*/0/' file