---
# System prepended metadata

title: tcpconnect go parser
tags: [tracer, probeparser]

---

# tcpconnect go parser
###### tags: `tracer` `probeparser` 
Application used for parsing : tcpconnect 


Usage:

```
root@node1:~/goparse/x-tracer# ./parse -h
Usage: 
 1. -pid -> ./parse -pid 27515 
 2. -port port_name -> ./parse -port 443 
 3. -id (Only display PIds used) -> ./parse -id 
 4. -name (Only display app names) -> ./parse -name
```

Outputs:
1. Parse through PID 

```
root@node1:~/goparse/x-tracer# ./parse -pid 27515

PID    COMM         IP SADDR            DADDR            DPORT

27515  kubelet      4  10.233.64.1      10.233.64.36     8080

27515  kubelet      4  10.233.64.1      10.233.64.37     44135

27515  kubelet      4  127.0.0.1        127.0.0.1        10251

27515  kubelet      4  192.168.10.15    192.168.10.15    6443
```
2. Parse through Port Id
```
root@node1:~/goparse/x-tracer# ./parse -port 8080

PID    COMM         IP SADDR            DADDR            DPORT

23196  coredns      4  127.0.0.1        127.0.0.1        8080

23196  coredns      4  127.0.0.1        127.0.0.1        8080

23196  coredns      4  127.0.0.1        127.0.0.1        8080

27515  kubelet      4  10.233.64.1      10.233.64.36     8080
```
3. Display PID used
```
root@node1:~/goparse/x-tracer# ./parse -id
PIDs in Use
PID

 27515

 23196

 27515

 23196

 23196

 22794

 22794
```

