Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

TS override processor doesnt update the TS #390

Closed
ksator opened this issue May 29, 2021 · 10 comments
Closed

TS override processor doesnt update the TS #390

ksator opened this issue May 29, 2021 · 10 comments

Comments

@ksator
Copy link

ksator commented May 29, 2021

Hello

The event-override-ts processor doesnt update the TS received in the gNMI notifications
I tested with both version 0.6 and 0.14

$ gnmic version
version : 0.14.0
 commit : 12ace80
   date : 2021-05-28T00:04:31Z
 gitURL : https://github.com/karimra/gnmic
   docs : https://gnmic.kmrd.dev
$ date
Sat May 29 12:14:00 UTC 2021

TS override configuration:

$ more gnmic_conf.yml 
address: "10.73.1.105:6030"
username: arista
password: arista
insecure: true
log-file: /tmp/gnmic.log

outputs:
  output1:
    type: file
    filename: ./gnmi_output.txt
    event-processors: 
      - set-timestamp-processor

processors:
  set-timestamp-processor:
    event-override-ts:
      precision: ms

ON_CHANGE mode and heartbeat-interval

$ gnmic --config gnmic_conf.yml --stream-mode "ON_CHANGE" --heartbeat-interval "10s" --insecure sub --path '/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state'
^C
received signal 'interrupt'. terminating...

TS is not updated

$ more gnmi_output.txt 

{"source":"10.73.1.105:6030","subscription-name":"default-1622290534","timestamp":1622288144682661909,"time":"2021-05-29T11:35:44.682661909Z","updates":[{"Path":"network-instances/network-instance[name=default]/protocols/protocol[identifier=BGP][name=BGP]/
bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state","values":{"network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state":"ESTABLISHED"}}]}

{"source":"10.73.1.105:6030","subscription-name":"default-1622290534","timestamp":1622288144682661909,"time":"2021-05-29T11:35:44.682661909Z","updates":[{"Path":"network-instances/network-instance[name=default]/protocols/protocol[name=BGP][identifier=BGP]/
bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state","values":{"network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state":"ESTABLISHED"}}]}

{"source":"10.73.1.105:6030","subscription-name":"default-1622290534","timestamp":1622288144682661909,"time":"2021-05-29T11:35:44.682661909Z","updates":[{"Path":"network-instances/network-instance[name=default]/protocols/protocol[identifier=BGP][name=BGP]/
bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state","values":{"network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state":"ESTABLISHED"}}]}

$ more /tmp/gnmic.log 
[gnmic] 2021/05/29 12:15:34.529755 using config file gnmic_conf.yml
[gnmic] 2021/05/29 12:15:34.530000 starting collector with config &{Name: PrometheusAddress: Debug:false Format: TargetReceiveBuffer:0 RetryTimer:10s ClusterName:default-cluster LockRetryTimer:5s}
[gnmic] 2021/05/29 12:15:34.530101 adding target {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 12:15:34.530142 *collector.TargetConfig | {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"buffer-size":1000,"retry-timer":10000000
000,"gzip":false}
[gnmic] 2021/05/29 12:15:34.530152 starting output type file
[gnmic] 2021/05/29 12:15:34.530165 *collector.TargetConfig | {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"buffer-size":1000,"retry-timer":10000000
000,"gzip":false}
[file_output] 2021/05/29 12:15:34.530484 initialized file output: {"Cfg":{"FileName":"./gnmi_output.txt","FileType":"","Format":"json","Multiline":false,"Indent":"","Separator":"\n","EventProcessors":["set-timestamp-processor"],"ConcurrencyLimit":1000,"Ena
bleMetrics":false,"Debug":false}}
[gnmic] 2021/05/29 12:15:34.530585 queuing target "10.73.1.105:6030"
[gnmic] 2021/05/29 12:15:34.530595 subscribing to target: "10.73.1.105:6030"
[gnmic] 2021/05/29 12:15:34.530612 starting target "10.73.1.105:6030" listener
[gnmic] 2021/05/29 12:15:34.532166 target '10.73.1.105:6030' gNMI client created
[gnmic] 2021/05/29 12:15:34.533071 sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"network-instances"} elem:{name:"network-instance" key:{key:"name" value:"default"}} elem:{name:"protocols"} elem:{name:"protocol"} elem:
{name:"bgp"} elem:{name:"neighbors"} elem:{name:"neighbor" key:{key:"neighbor-address" value:"192.168.255.2"}} elem:{name:"state"} elem:{name:"session-state"}} mode:ON_CHANGE heartbeat_interval:10000000000}}', mode='STREAM', encoding='JSON', to 10.73.1.105
:6030

Same issue with SAMPLE mode and sample-interval

$ rm /tmp/gnmic.log 
$ rm gnmi_output.txt 

debug

$ gnmic --config gnmic_conf.yml --stream-mode "SAMPLE" --sample-interval "10s" --insecure sub --path '/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state' --debug
[config] 2021/05/29 12:21:07.466419 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=address, changed=false, isSetInFile=true
[config] 2021/05/29 12:21:07.466633 /home/runner/work/gnmic/gnmic/config/config.go:310: cmd=gnmic, flagName=address, valueType=string, value="10.73.1.105:6030"
[config] 2021/05/29 12:21:07.466752 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=api, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.466859 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=cluster-name, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.466966 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=config, changed=true, isSetInFile=true
[config] 2021/05/29 12:21:07.467061 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=debug, changed=true, isSetInFile=true
[config] 2021/05/29 12:21:07.467139 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=dir, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.467215 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=encoding, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.467290 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=exclude, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.467365 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=file, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.467439 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=format, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.467514 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=gzip, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.467592 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=insecure, changed=true, isSetInFile=true
[config] 2021/05/29 12:21:07.467667 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=instance-name, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.467743 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=log, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.467822 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=log-file, changed=false, isSetInFile=true
[config] 2021/05/29 12:21:07.467899 /home/runner/work/gnmic/gnmic/config/config.go:310: cmd=gnmic, flagName=log-file, valueType=string, value="/tmp/gnmic.log"
[config] 2021/05/29 12:21:07.467976 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=max-msg-size, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.468052 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=no-prefix, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.468126 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=password, changed=false, isSetInFile=true
[config] 2021/05/29 12:21:07.468202 /home/runner/work/gnmic/gnmic/config/config.go:310: cmd=gnmic, flagName=password, valueType=string, value="arista"
[config] 2021/05/29 12:21:07.468281 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=port, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.468358 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=print-request, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.468434 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=prometheus-address, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.468509 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=proto-dir, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.468584 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=proto-file, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.468665 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=proxy-from-env, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.468741 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=retry, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.468816 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=skip-verify, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.468891 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=targets-file, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.468966 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=timeout, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.469040 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-ca, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.469115 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-cert, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.469189 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-key, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.469264 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-max-version, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.469339 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-min-version, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.469414 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-version, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.469490 /home/runner/work/gnmic/gnmic/config/config.go:274: cmd=gnmic, flagName=username, changed=false, isSetInFile=true
[config] 2021/05/29 12:21:07.469564 /home/runner/work/gnmic/gnmic/config/config.go:310: cmd=gnmic, flagName=username, valueType=string, value="arista"
[config] 2021/05/29 12:21:07.474150 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=backoff, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.474247 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=heartbeat-interval, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.474326 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=help, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.474401 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=lock-retry, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.474476 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=mode, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.474551 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=model, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.474627 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=name, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.474702 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=output, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.474785 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=path, changed=true, isSetInFile=true
[config] 2021/05/29 12:21:07.474869 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=prefix, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.474945 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=qos, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.475020 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=quiet, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.475095 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=sample-interval, changed=true, isSetInFile=true
[config] 2021/05/29 12:21:07.475168 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=stream-mode, changed=true, isSetInFile=true
[config] 2021/05/29 12:21:07.475242 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=suppress-redundant, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.475318 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=target, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.475392 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=updates-only, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.475467 /home/runner/work/gnmic/gnmic/config/config.go:287: cmd=subscribe, flagName=watch-config, changed=false, isSetInFile=false
[config] 2021/05/29 12:21:07.475622 /home/runner/work/gnmic/gnmic/config/subscriptions.go:43: subscriptions: map[default-1622290867:{"name":"default-1622290867","paths":["/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state"],"mode":"stream","stream-mode":"SAMPLE","encoding":"json","sample-interval":10000000000}]
[config] 2021/05/29 12:21:07.475804 /home/runner/work/gnmic/gnmic/config/targets.go:47: targets: map[10.73.1.105:6030:{"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"retry-timer":10000000000,"gzip":false}]
[config] 2021/05/29 12:21:07.475898 /home/runner/work/gnmic/gnmic/config/inputs.go:49: inputs: map[]
[config] 2021/05/29 12:21:07.475983 /home/runner/work/gnmic/gnmic/config/subscriptions.go:43: subscriptions: map[default-1622290867:{"name":"default-1622290867","paths":["/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state"],"mode":"stream","stream-mode":"SAMPLE","encoding":"json","sample-interval":10000000000}]
[config] 2021/05/29 12:21:07.476088 /home/runner/work/gnmic/gnmic/config/outputs.go:52: outputs: map[output1:map[event-processors:[set-timestamp-processor] filename:./gnmi_output.txt format: type:file]]
[config] 2021/05/29 12:21:07.476170 /home/runner/work/gnmic/gnmic/config/processors.go:14: validating processor "set-timestamp-processor" config
[config] 2021/05/29 12:21:07.476251 /home/runner/work/gnmic/gnmic/config/processors.go:37: processors: map[set-timestamp-processor:map[event-override-ts:map[precision:ms]]]
^C
received signal 'interrupt'. terminating...
$ more gnmi_output.txt 

{"source":"10.73.1.105:6030","subscription-name":"default-1622290867","timestamp":1622288144682661909,"time":"2021-05-29T11:35:44.682661909Z","updates":[{"Path":"network-instances/network-instance[name=default]/protocols/protocol[identifier=BGP][name=BGP]/
bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state","values":{"network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state":"ESTABLISHED"}}]}

{"source":"10.73.1.105:6030","subscription-name":"default-1622290867","timestamp":1622288144682661909,"time":"2021-05-29T11:35:44.682661909Z","updates":[{"Path":"network-instances/network-instance[name=default]/protocols/protocol[identifier=BGP][name=BGP]/
bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state","values":{"network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state":"ESTABLISHED"}}]}
{"source":"10.73.1.105:6030","subscription-name":"default-1622290867","timestamp":1622288144682661909,"time":"2021-05-29T11:35:44.682661909Z","updates":[{"Path":"network-instances/network-instance[name=default]/protocols/protocol[name=BGP][identifier=BGP]/
bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state","values":{"network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state":"ESTABLISHED"}}]}
$ more /tmp/gnmic.log 
[gnmic] 2021/05/29 12:21:07.469755 /home/runner/work/gnmic/gnmic/app/app.go:170: version=0.14.0, commit=12ace80, date=2021-05-28T00:04:31Z, gitURL=https://github.com/karimra/gnmic, docs=https://gnmic.kmrd.dev
[gnmic] 2021/05/29 12:21:07.469796 /home/runner/work/gnmic/gnmic/app/app.go:174: using config file gnmic_conf.yml
[gnmic] 2021/05/29 12:21:07.469832 /home/runner/work/gnmic/gnmic/app/app.go:183: config file:
address: "10.73.1.105:6030"
username: arista
password: arista
insecure: true
log-file: /tmp/gnmic.log

outputs:
  output1:
    type: file
    filename: ./gnmi_output.txt
    event-processors: 
      - set-timestamp-processor

processors:
  set-timestamp-processor:
    event-override-ts:
      precision: ms

[gnmic] 2021/05/29 12:21:07.471826 /home/runner/work/gnmic/gnmic/app/app.go:223: set flags/config:
address:
- 10.73.1.105:6030
api: ""
capabilities-version: false
cluster-name: default-cluster
config: gnmic_conf.yml
debug: true
diff-compare: '[]'
diff-model: []
diff-path: '[]'
diff-prefix: ""
diff-qos: "0"
diff-ref: ""
diff-sub: false
diff-target: ""
diff-type: ALL
dir: '[]'
encoding: json
exclude: '[]'
file: '[]'
format: ""
generate-config-only: false
generate-path: ""
get-model: []
get-path: '[]'
get-prefix: ""
get-target: ""
get-type: ALL
getset-condition: any([true])
getset-delete: ""
getset-get: ""
getset-model: []
getset-prefix: ""
getset-replace: ""
getset-target: ""
getset-type: ALL
getset-update: ""
getset-value: ""
gzip: false
insecure: true
instance-name: ""
listen-max-concurrent-streams: "256"
log: true
log-file: /tmp/gnmic.log
max-msg-size: 536870912
no-prefix: false
outputs:
  output1:
    event-processors:
    - set-timestamp-processor
    filename: ./gnmi_output.txt
    type: file
password: arista
path-config-only: false
path-descr: false
path-path-type: xpath
path-search: false
path-state-only: false
path-types: false
path-with-prefix: false
port: "57400"
print-request: false
processors:
  set-timestamp-processor:
    event-override-ts:
      precision: ms
prometheus-address: ""
prompt-description-bg-color: dark_gray
prompt-description-with-prefix: false
prompt-description-with-types: false
prompt-max-suggestions: "10"
prompt-prefix-color: dark_blue
prompt-suggest-all-flags: false
prompt-suggest-with-origin: false
prompt-suggestions-bg-color: dark_blue
proto-dir: '[]'
proto-file: '[]'
proxy-from-env: false
retry: 10s
set-delete: '[]'
set-delimiter: ':::'
set-prefix: ""
set-replace: '[]'
set-replace-file: '[]'
set-replace-path: '[]'
set-replace-value: '[]'
set-request-file: ""
set-request-replace: '[]'
set-request-update: '[]'
set-request-vars: ""
set-target: ""
set-update: '[]'
set-update-file: '[]'
set-update-path: '[]'
set-update-value: '[]'
skip-verify: false
subscribe-backoff: 0s
subscribe-heartbeat-interval: 0s
subscribe-lock-retry: 5s
subscribe-mode: stream
subscribe-model: []
subscribe-name: []
subscribe-output: []
subscribe-path: '[/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state]'
subscribe-prefix: ""
subscribe-qos: "0"
subscribe-quiet: false
subscribe-sample-interval: 10s
subscribe-stream-mode: SAMPLE
subscribe-suppress-redundant: false
subscribe-target: ""
subscribe-updates-only: false
subscribe-watch-config: false
targets-file: ""
timeout: 10s
tls-ca: ""
tls-cert: ""
tls-key: ""
tls-max-version: ""
tls-min-version: ""
tls-version: ""
upgrade-use-pkg: false
username: arista

[gnmic] 2021/05/29 12:21:07.472038 /home/runner/work/gnmic/gnmic/app/app.go:233: address='[10.73.1.105:6030]'([]string)
[gnmic] 2021/05/29 12:21:07.472066 /home/runner/work/gnmic/gnmic/app/app.go:233: config='gnmic_conf.yml'(string)
[gnmic] 2021/05/29 12:21:07.472078 /home/runner/work/gnmic/gnmic/app/app.go:233: debug='true'(bool)
[gnmic] 2021/05/29 12:21:07.472122 /home/runner/work/gnmic/gnmic/app/app.go:233: insecure='true'(bool)
[gnmic] 2021/05/29 12:21:07.472136 /home/runner/work/gnmic/gnmic/app/app.go:233: log-file='/tmp/gnmic.log'(string)
[gnmic] 2021/05/29 12:21:07.472571 /home/runner/work/gnmic/gnmic/app/app.go:233: outputs/output1/event-processors='[set-timestamp-processor]'([]interface {})
[gnmic] 2021/05/29 12:21:07.473026 /home/runner/work/gnmic/gnmic/app/app.go:233: outputs/output1/filename='./gnmi_output.txt'(string)
[gnmic] 2021/05/29 12:21:07.473461 /home/runner/work/gnmic/gnmic/app/app.go:233: outputs/output1/type='file'(string)
[gnmic] 2021/05/29 12:21:07.473473 /home/runner/work/gnmic/gnmic/app/app.go:233: password='arista'(string)
[gnmic] 2021/05/29 12:21:07.473954 /home/runner/work/gnmic/gnmic/app/app.go:233: processors/set-timestamp-processor/event-override-ts/precision='ms'(string)
[gnmic] 2021/05/29 12:21:07.474036 /home/runner/work/gnmic/gnmic/app/app.go:233: subscribe-path='[/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state]'(string)
[gnmic] 2021/05/29 12:21:07.474051 /home/runner/work/gnmic/gnmic/app/app.go:233: subscribe-sample-interval='10s'(string)
[gnmic] 2021/05/29 12:21:07.474061 /home/runner/work/gnmic/gnmic/app/app.go:233: subscribe-stream-mode='SAMPLE'(string)
[gnmic] 2021/05/29 12:21:07.474094 /home/runner/work/gnmic/gnmic/app/app.go:233: username='arista'(string)
[gnmic] 2021/05/29 12:21:07.476340 /home/runner/work/gnmic/gnmic/app/subscribe.go:274: starting collector with config &{Name: PrometheusAddress: Debug:true Format: TargetReceiveBuffer:0 RetryTimer:10s ClusterName:default-cluster LockRetryTimer:5s}
[gnmic] 2021/05/29 12:21:07.476362 /home/runner/work/gnmic/gnmic/collector/collector.go:149: starting collector with cfg=&{Name: PrometheusAddress: Debug:true Format: TargetReceiveBuffer:1000 RetryTimer:10s ClusterName:default-cluster LockRetryTimer:5s}
[gnmic] 2021/05/29 12:21:07.476377 /home/runner/work/gnmic/gnmic/collector/collector.go:175: adding target {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":f
alse,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 12:21:07.476441 /home/runner/work/gnmic/gnmic/collector/collector.go:911: *collector.TargetConfig | {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"sk
ip-verify":false,"buffer-size":1000,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 12:21:07.476453 /home/runner/work/gnmic/gnmic/collector/collector.go:432: starting output type file
[gnmic] 2021/05/29 12:21:07.476470 /home/runner/work/gnmic/gnmic/collector/collector.go:911: *collector.TargetConfig | {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"sk
ip-verify":false,"buffer-size":1000,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 12:21:07.476625 /home/runner/work/gnmic/gnmic/collector/collector.go:636: starting target &{Config:{"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"ski
p-verify":false,"buffer-size":1000,"retry-timer":10000000000,"gzip":false} Subscriptions:map[default-1622290867:{"name":"default-1622290867","paths":["/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-addr
ess=192.168.255.2]/state/session-state"],"mode":"stream","stream-mode":"SAMPLE","encoding":"json","sample-interval":10000000000}] m:0xc000246298 Client:<nil> SubscribeClients:map[] subscribeCancelFn:map[] pollChan:0xc000080840 subscribeResponses:0xc000075d
a0 errors:0xc0000808a0 stopped:false stopChan:0xc000080900 cfn:<nil> rootDesc:<nil>}
[gnmic] 2021/05/29 12:21:07.476638 /home/runner/work/gnmic/gnmic/collector/collector.go:648: starting target "10.73.1.105:6030" listener
[gnmic] 2021/05/29 12:21:07.476660 /home/runner/work/gnmic/gnmic/collector/collector.go:281: queuing target "10.73.1.105:6030"
[gnmic] 2021/05/29 12:21:07.476669 /home/runner/work/gnmic/gnmic/collector/collector.go:283: subscribing to target: "10.73.1.105:6030"
[gnmic] 2021/05/29 12:21:07.476741 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: parsed scheme: ""
[gnmic] 2021/05/29 12:21:07.476761 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: scheme "" not registered, fallback to default scheme
[gnmic] 2021/05/29 12:21:07.476780 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: ccResolverWrapper: sending update to cc: {[{10.73.1.105:6030  <nil> 0 <nil>}] <nil> <nil>}
[gnmic] 2021/05/29 12:21:07.476790 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: ClientConn switching balancer to "pick_first"
[gnmic] 2021/05/29 12:21:07.476798 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Channel switches to new LB policy "pick_first"
[gnmic] 2021/05/29 12:21:07.476816 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Subchannel Connectivity change to CONNECTING
[gnmic] 2021/05/29 12:21:07.476836 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Subchannel picks a new address "10.73.1.105:6030" to connect
[gnmic] 2021/05/29 12:21:07.477002 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:57: pickfirstBalancer: UpdateSubConnState: 0xc000243160, {CONNECTING <nil>}
[gnmic] 2021/05/29 12:21:07.477017 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Channel Connectivity change to CONNECTING
[file_output] 2021/05/29 12:21:07.477119 /home/runner/work/gnmic/gnmic/outputs/file/file_output.go:148: initialized file output: {"Cfg":{"FileName":"./gnmi_output.txt","FileType":"","Format":"json","Multiline":false,"Indent":"","Separator":"\n","EventProce
ssors":["set-timestamp-processor"],"ConcurrencyLimit":1000,"EnableMetrics":false,"Debug":false}}
[gnmic] 2021/05/29 12:21:07.479199 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Subchannel Connectivity change to READY
[gnmic] 2021/05/29 12:21:07.479241 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:57: pickfirstBalancer: UpdateSubConnState: 0xc000243160, {READY <nil>}
[gnmic] 2021/05/29 12:21:07.479261 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Channel Connectivity change to READY
[gnmic] 2021/05/29 12:21:07.479283 /home/runner/work/gnmic/gnmic/collector/collector.go:540: target '10.73.1.105:6030' gNMI client created
[gnmic] 2021/05/29 12:21:07.480580 /home/runner/work/gnmic/gnmic/collector/collector.go:543: sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"network-instances"} elem:{name:"network-instance" key:{key:"name" value:"defau
lt"}} elem:{name:"protocols"} elem:{name:"protocol"} elem:{name:"bgp"} elem:{name:"neighbors"} elem:{name:"neighbor" key:{key:"neighbor-address" value:"192.168.255.2"}} elem:{name:"state"} elem:{name:"session-state"}} mode:SAMPLE sample_interval:1000000000
0}}', mode='STREAM', encoding='JSON', to 10.73.1.105:6030
[gnmic] 2021/05/29 12:21:07.621171 /home/runner/work/gnmic/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:default-1622290867 Response:update:{timestamp:1622288144682661909 update:{path:{elem:{name:"network-instances"
} elem:{name:"network-instance" key:{key:"name" value:"default"}} elem:{name:"protocols"} elem:{name:"protocol" key:{key:"identifier" value:"BGP"} key:{key:"name" value:"BGP"}} elem:{name:"bgp"} elem:{name:"neighbors"} elem:{name:"neighbor" key:{key:"neigh
bor-address" value:"192.168.255.2"}} elem:{name:"state"} elem:{name:"session-state"}} val:{string_val:"ESTABLISHED"}}}}
[gnmic] 2021/05/29 12:21:07.621237 /home/runner/work/gnmic/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:default-1622290867 Response:sync_response:true}
[gnmic] 2021/05/29 12:21:17.622474 /home/runner/work/gnmic/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:default-1622290867 Response:update:{timestamp:1622288144682661909 update:{path:{elem:{name:"network-instances"
} elem:{name:"network-instance" key:{key:"name" value:"default"}} elem:{name:"protocols"} elem:{name:"protocol" key:{key:"identifier" value:"BGP"} key:{key:"name" value:"BGP"}} elem:{name:"bgp"} elem:{name:"neighbors"} elem:{name:"neighbor" key:{key:"neigh
bor-address" value:"192.168.255.2"}} elem:{name:"state"} elem:{name:"session-state"}} val:{string_val:"ESTABLISHED"}}}}
[gnmic] 2021/05/29 12:21:17.622659 /home/runner/work/gnmic/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:default-1622290867 Response:sync_response:true}
[gnmic] 2021/05/29 12:21:27.620503 /home/runner/work/gnmic/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:default-1622290867 Response:update:{timestamp:1622288144682661909 update:{path:{elem:{name:"network-instances"
} elem:{name:"network-instance" key:{key:"name" value:"default"}} elem:{name:"protocols"} elem:{name:"protocol" key:{key:"identifier" value:"BGP"} key:{key:"name" value:"BGP"}} elem:{name:"bgp"} elem:{name:"neighbors"} elem:{name:"neighbor" key:{key:"neigh
bor-address" value:"192.168.255.2"}} elem:{name:"state"} elem:{name:"session-state"}} val:{string_val:"ESTABLISHED"}}}}
[gnmic] 2021/05/29 12:21:27.620918 /home/runner/work/gnmic/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:default-1622290867 Response:sync_response:true}
$          
@ksator
Copy link
Author

ksator commented May 29, 2021

Am I doing something wrong? Or is it an issue with this processor?

@ksator
Copy link
Author

ksator commented May 29, 2021

I am facing the same issue testing with another gnmic file

$ rm gnmi_output.txt
$ more .gnmic.yml 
username: arista
password: arista
insecure: true
log-file: /tmp/gnmic.log
port: 6030

targets:
  10.73.1.105: 
    subscriptions:
      - bgp
      - port_stats
    outputs:
      - output1
  10.73.1.106: 
    subscriptions:
      - port_stats
    outputs:
      - output2

subscriptions:
  port_stats:
    paths:
      - "/interfaces/interface[name=Ethernet1]/state/counters"
    stream-mode: sample
    sample-interval: 10s
  bgp:
    paths:
      - "/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state"
    stream-mode: on-change
    heartbeat-interval: 10s

outputs:
  output1:
    type: file
    filename: ./gnmi_output.txt
    event-processors:
      - TS_processor

processors:
  TS_processor:
    event-override-ts:
      precision: ms
$ gnmic subscribe
^C
received signal 'interrupt'. terminating...
$ more gnmi_output.txt  | grep bgp
{"source":"10.73.1.105:6030","subscription-name":"bgp","timestamp":1622288144682661909,"time":"2021-05-29T11:35:44.682661909Z","updates":[{"Path":"network-instances/network-instance[name=default]/protocols/protocol[identifier=BGP][name=BGP]/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state","values":{"network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state":"ESTABLISHED"}}]}
{"source":"10.73.1.105:6030","subscription-name":"bgp","timestamp":1622288144682661909,"time":"2021-05-29T11:35:44.682661909Z","updates":[{"Path":"network-instances/network-instance[name=default]/protocols/protocol[name=BGP][identifier=BGP]/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state","values":{"network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state":"ESTABLISHED"}}]}
$ 

@karimra
Copy link
Owner

karimra commented May 29, 2021

Hi @ksator ,

yes seems the processor is broken, will push a PR in a few minutes to fix it.

Please keep in mind that processors only apply when the format is event, so you will need to add a format: event under the output config or use the flag --format event

@karimra
Copy link
Owner

karimra commented May 29, 2021

If you need to override the timestamp for other formats, I can add a knob under the output config to do it.
Something like: override-timestamp: true

@ksator
Copy link
Author

ksator commented May 29, 2021

Hello @karimra thank you so much.
Is there an easy way to install gnmic from the last commit?

@karimra
Copy link
Owner

karimra commented May 29, 2021

Here is a linux binary from the last commit, would be nice if you could try it with format event
gnmic.zip

@ksator
Copy link
Author

ksator commented May 29, 2021

$ ./gnmic version
version : dev
 commit : none
   date : unknown
 gitURL : 
   docs : https://gnmic.kmrd.dev
$ rm gnmi_output.txt 
$ rm /tmp/gnmic.log 
$ more .gnmic.yml 
username: arista
password: arista
insecure: true
log-file: /tmp/gnmic.log
#address: 
#  - "10.73.1.105:6030"
#  - "10.73.1.106:6030"
port: 6030

targets:
  10.73.1.105: 
    subscriptions:
      - bgp
    outputs:
      - output1
  10.73.1.106: 
    subscriptions:
      - port_stats
    outputs:
      - output2

subscriptions:
  port_stats:
    paths:
      - "/interfaces/interface[name=Ethernet1]/state/counters"
    stream-mode: sample
    sample-interval: 10s
  bgp:
    paths:
      - "/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state"
    stream-mode: sample
    sample-interval: 10s
outputs:
  output1:
    type: file
    filename: ./gnmi_output.txt
    event-processors:
      - TS_processor

processors:
  TS_processor:
    event-override-ts:
      precision: ms
$ ./gnmic subscribe --format event
^C
received signal 'interrupt'. terminating...

I can see the format is event, but the TS is not updated

$ more gnmi_output.txt 

[{"name":"bgp","timestamp":1622288144682661909,"tags":{"neighbor_neighbor-address":"192.168.255.2","network-instance_name":"default","protocol_identifier":"BGP","protocol_name":"BGP","source":"10.73.1.105:6030","subscription-name":"bgp"},"values":{"/networ
k-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state":"ESTABLISHED"}}]

[{"name":"bgp","timestamp":1622288144682661909,"tags":{"neighbor_neighbor-address":"192.168.255.2","network-instance_name":"default","protocol_identifier":"BGP","protocol_name":"BGP","source":"10.73.1.105:6030","subscription-name":"bgp"},"values":{"/networ
k-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state":"ESTABLISHED"}}]

[{"name":"bgp","timestamp":1622288144682661909,"tags":{"neighbor_neighbor-address":"192.168.255.2","network-instance_name":"default","protocol_identifier":"BGP","protocol_name":"BGP","source":"10.73.1.105:6030","subscription-name":"bgp"},"values":{"/networ
k-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state":"ESTABLISHED"}}]
$ more /tmp/gnmic.log 
[gnmic] 2021/05/29 18:44:06.921698 using config file /home/ksator/automation_and_telemetry_demo/gnmi/.gnmic.yml
[gnmic] 2021/05/29 18:44:06.922300 starting collector with config &{Name: PrometheusAddress: Debug:false Format:event TargetReceiveBuffer:0 RetryTimer:10s ClusterName:default-cluster LockRetryTimer:5s}
[gnmic] 2021/05/29 18:44:06.922422 adding target {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"subscriptions":["bgp"],"outputs":["output1"],"retry-
timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:44:06.922441 adding target {"name":"10.73.1.106:6030","address":"10.73.1.106:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"subscriptions":["port_stats"],"outputs":["output2"],
"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:44:06.922514 *collector.TargetConfig | {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"subscriptions":["bgp"],"outputs":["outpu
t1"],"buffer-size":1000,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:44:06.922529 *collector.TargetConfig | {"name":"10.73.1.106:6030","address":"10.73.1.106:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"subscriptions":["port_stats"],"outputs":
["output2"],"buffer-size":1000,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:44:06.922537 starting output type file
[gnmic] 2021/05/29 18:44:06.922559 *collector.TargetConfig | {"name":"10.73.1.106:6030","address":"10.73.1.106:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"subscriptions":["port_stats"],"outputs":
["output2"],"buffer-size":1000,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:44:06.922580 *collector.TargetConfig | {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"subscriptions":["bgp"],"outputs":["outpu
t1"],"buffer-size":1000,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:44:06.922743 queuing target "10.73.1.106:6030"
[gnmic] 2021/05/29 18:44:06.922758 subscribing to target: "10.73.1.106:6030"
[file_output] 2021/05/29 18:44:06.923095 initialized file output: {"Cfg":{"FileName":"./gnmi_output.txt","FileType":"","Format":"event","Multiline":false,"Indent":"","Separator":"\n","EventProcessors":["TS_processor"],"ConcurrencyLimit":1000,"EnableMetrics
":false,"Debug":false}}
[gnmic] 2021/05/29 18:44:06.923179 starting target "10.73.1.106:6030" listener
[gnmic] 2021/05/29 18:44:06.923209 starting target "10.73.1.105:6030" listener
[gnmic] 2021/05/29 18:44:06.923240 queuing target "10.73.1.105:6030"
[gnmic] 2021/05/29 18:44:06.923249 subscribing to target: "10.73.1.105:6030"
[gnmic] 2021/05/29 18:44:06.924675 target '10.73.1.106:6030' gNMI client created
[gnmic] 2021/05/29 18:44:06.925734 target '10.73.1.105:6030' gNMI client created
[gnmic] 2021/05/29 18:44:06.925807 sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"interfaces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}}  mode:SAMPLE  s
ample_interval:10000000000}}', mode='STREAM', encoding='JSON', to 10.73.1.106:6030
[gnmic] 2021/05/29 18:44:06.925888 sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"network-instances"}  elem:{name:"network-instance"  key:{key:"name"  value:"default"}}  elem:{name:"protocols"}  elem:{name:"protocol"} 
 elem:{name:"bgp"}  elem:{name:"neighbors"}  elem:{name:"neighbor"  key:{key:"neighbor-address"  value:"192.168.255.2"}}  elem:{name:"state"}  elem:{name:"session-state"}}  mode:SAMPLE  sample_interval:10000000000}}', mode='STREAM', encoding='JSON', to 10.
73.1.105:6030
$ date
Sat May 29 18:48:44 UTC 2021

@ksator
Copy link
Author

ksator commented May 29, 2021

debug output

$ rm /tmp/gnmic.log 
$ rm gnmi_output.txt 
$ ./gnmic subscribe --format event --debug
[config] 2021/05/29 18:53:18.810924 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=address, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.811111 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=api, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.811217 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=cluster-name, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.811326 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=config, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.811443 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=debug, changed=true, isSetInFile=true
[config] 2021/05/29 18:53:18.811542 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=dir, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.811627 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=encoding, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.811713 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=exclude, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.811794 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=file, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.811876 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=format, changed=true, isSetInFile=true
[config] 2021/05/29 18:53:18.811965 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=gzip, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.812047 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=insecure, changed=false, isSetInFile=true
[config] 2021/05/29 18:53:18.812149 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:310: cmd=gnmic, flagName=insecure, valueType=bool, value=true
[config] 2021/05/29 18:53:18.812258 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=instance-name, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.812376 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=log, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.812464 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=log-file, changed=false, isSetInFile=true
[config] 2021/05/29 18:53:18.812546 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:310: cmd=gnmic, flagName=log-file, valueType=string, value="/tmp/gnmic.log"
[config] 2021/05/29 18:53:18.812629 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=max-msg-size, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.812710 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=no-prefix, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.812791 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=password, changed=false, isSetInFile=true
[config] 2021/05/29 18:53:18.812884 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:310: cmd=gnmic, flagName=password, valueType=string, value="arista"
[config] 2021/05/29 18:53:18.812970 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=port, changed=false, isSetInFile=true
[config] 2021/05/29 18:53:18.813052 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:310: cmd=gnmic, flagName=port, valueType=int, value=6030
[config] 2021/05/29 18:53:18.813144 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=print-request, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.813266 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=prometheus-address, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.813380 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=proto-dir, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.813470 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=proto-file, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.813587 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=proxy-from-env, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.813673 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=retry, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.813756 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=skip-verify, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.813836 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=targets-file, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.813915 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=timeout, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.813996 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-ca, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.814077 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-cert, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.814158 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-key, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.814247 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-max-version, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.814330 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-min-version, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.814411 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=tls-version, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.814491 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:274: cmd=gnmic, flagName=username, changed=false, isSetInFile=true
[config] 2021/05/29 18:53:18.814573 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:310: cmd=gnmic, flagName=username, valueType=string, value="arista"
[config] 2021/05/29 18:53:18.826733 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=backoff, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.826838 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=heartbeat-interval, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.826923 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=help, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827019 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=lock-retry, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827104 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=mode, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827184 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=model, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827265 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=name, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827353 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=output, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827433 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=path, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827514 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=prefix, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827604 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=qos, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827688 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=quiet, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827769 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=sample-interval, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827851 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=stream-mode, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.827932 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=suppress-redundant, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.828017 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=target, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.828101 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=updates-only, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.828183 /Users/karim/Documents/github.com/karimra/gnmic/config/config.go:287: cmd=subscribe, flagName=watch-config, changed=false, isSetInFile=false
[config] 2021/05/29 18:53:18.828287 /Users/karim/Documents/github.com/karimra/gnmic/config/subscriptions.go:49: subscriptions map: map[bgp:map[paths:[/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state] sample-interval:10s stream-mode:sample] port_stats:map[paths:[/interfaces/interface[name=Ethernet1]/state/counters] sample-interval:10s stream-mode:sample]]+
[config] 2021/05/29 18:53:18.828645 /Users/karim/Documents/github.com/karimra/gnmic/config/subscriptions.go:74: subscriptions: map[bgp:{"name":"bgp","paths":["/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state"],"mode":"stream","stream-mode":"sample","encoding":"json","sample-interval":10000000000} port_stats:{"name":"port_stats","paths":["/interfaces/interface[name=Ethernet1]/state/counters"],"mode":"stream","stream-mode":"sample","encoding":"json","sample-interval":10000000000}]
[config] 2021/05/29 18:53:18.828922 /Users/karim/Documents/github.com/karimra/gnmic/config/targets.go:100: read target config: {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"subscriptions":["bgp"],"outputs":["output1"],"retry-timer":10000000000,"gzip":false}
[config] 2021/05/29 18:53:18.829108 /Users/karim/Documents/github.com/karimra/gnmic/config/targets.go:100: read target config: {"name":"10.73.1.106:6030","address":"10.73.1.106:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"subscriptions":["port_stats"],"outputs":["output2"],"retry-timer":10000000000,"gzip":false}
[config] 2021/05/29 18:53:18.829245 /Users/karim/Documents/github.com/karimra/gnmic/config/targets.go:114: targets: map[10.73.1.105:6030:{"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"subscriptions":["bgp"],"outputs":["output1"],"retry-timer":10000000000,"gzip":false} 10.73.1.106:6030:{"name":"10.73.1.106:6030","address":"10.73.1.106:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":true,"skip-verify":false,"subscriptions":["port_stats"],"outputs":["output2"],"retry-timer":10000000000,"gzip":false}]
[config] 2021/05/29 18:53:18.829370 /Users/karim/Documents/github.com/karimra/gnmic/config/inputs.go:49: inputs: map[]
[config] 2021/05/29 18:53:18.829464 /Users/karim/Documents/github.com/karimra/gnmic/config/subscriptions.go:49: subscriptions map: map[bgp:map[paths:[/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state] sample-interval:10s stream-mode:sample] port_stats:map[paths:[/interfaces/interface[name=Ethernet1]/state/counters] sample-interval:10s stream-mode:sample]]+
[config] 2021/05/29 18:53:18.829683 /Users/karim/Documents/github.com/karimra/gnmic/config/subscriptions.go:74: subscriptions: map[bgp:{"name":"bgp","paths":["/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state"],"mode":"stream","stream-mode":"sample","encoding":"json","sample-interval":10000000000} port_stats:{"name":"port_stats","paths":["/interfaces/interface[name=Ethernet1]/state/counters"],"mode":"stream","stream-mode":"sample","encoding":"json","sample-interval":10000000000}]
[config] 2021/05/29 18:53:18.829824 /Users/karim/Documents/github.com/karimra/gnmic/config/outputs.go:52: outputs: map[output1:map[event-processors:[TS_processor] filename:./gnmi_output.txt format:event type:file]]
[config] 2021/05/29 18:53:18.829916 /Users/karim/Documents/github.com/karimra/gnmic/config/processors.go:14: validating processor "ts_processor" config
[config] 2021/05/29 18:53:18.830003 /Users/karim/Documents/github.com/karimra/gnmic/config/processors.go:37: processors: map[ts_processor:map[event-override-ts:map[precision:ms]]]
^C
received signal 'interrupt'. terminating...
$ more /tmp/gnmic.log 
[gnmic] 2021/05/29 18:53:18.814720 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:170: version=dev, commit=none, date=unknown, gitURL=, docs=https://gnmic.kmrd.dev
[gnmic] 2021/05/29 18:53:18.814759 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:174: using config file /home/ksator/automation_and_telemetry_demo/gnmi/.gnmic.yml
[gnmic] 2021/05/29 18:53:18.814802 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:183: config file:
username: arista
password: arista
insecure: true
log-file: /tmp/gnmic.log
#address: 
#  - "10.73.1.105:6030"
#  - "10.73.1.106:6030"
port: 6030

targets:
  10.73.1.105: 
    subscriptions:
      - bgp
    outputs:
      - output1
  10.73.1.106: 
    subscriptions:
      - port_stats
    outputs:
      - output2

subscriptions:
  port_stats:
    paths:
      - "/interfaces/interface[name=Ethernet1]/state/counters"
    stream-mode: sample
    sample-interval: 10s
  bgp:
    paths:
      - "/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state"
    stream-mode: sample
    sample-interval: 10s
outputs:
  output1:
    type: file
    filename: ./gnmi_output.txt
    event-processors:
      - TS_processor

processors:
  TS_processor:
    event-override-ts:
      precision: ms
[gnmic] 2021/05/29 18:53:18.819508 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:223: set flags/config:
address: []
api: ""
capabilities-version: false
cluster-name: default-cluster
config: ""
debug: true
diff-compare: '[]'
diff-model: []
diff-path: '[]'
diff-prefix: ""
diff-qos: "0"
diff-ref: ""
diff-sub: false
diff-target: ""
diff-type: ALL
dir: '[]'
encoding: json
exclude: '[]'
file: '[]'
format: event
generate-config-only: false
generate-path: ""
get-model: []
get-path: '[]'
get-prefix: ""
get-target: ""
get-type: ALL
getset-condition: any([true])
getset-delete: ""
getset-get: ""
getset-model: []
getset-prefix: ""
getset-replace: ""
getset-target: ""
getset-type: ALL
getset-update: ""
getset-value: ""
gzip: false
insecure: true
instance-name: ""
listen-max-concurrent-streams: "256"
log: true
log-file: /tmp/gnmic.log
max-msg-size: 536870912
no-prefix: false
outputs:
  output1:
    event-processors:
    - TS_processor
    filename: ./gnmi_output.txt
    type: file
password: arista
path-config-only: false
path-descr: false
path-path-type: xpath
path-search: false
path-state-only: false
path-types: false
path-with-prefix: false
port: "6030"
print-request: false
processors:
  ts_processor:
    event-override-ts:
      precision: ms
prometheus-address: ""
prompt-description-bg-color: dark_gray
prompt-description-with-prefix: false
prompt-description-with-types: false
prompt-max-suggestions: "10"
prompt-prefix-color: dark_blue
prompt-suggest-all-flags: false
prompt-suggest-with-origin: false
prompt-suggestions-bg-color: dark_blue
proto-dir: '[]'
proto-file: '[]'
proxy-from-env: false
retry: 10s
set-delete: '[]'
set-delimiter: ':::'
set-prefix: ""
set-replace: '[]'
set-replace-file: '[]'
set-replace-path: '[]'
set-replace-value: '[]'
set-request-file: ""
set-request-replace: '[]'
set-request-update: '[]'
set-request-vars: ""
set-target: ""
set-update: '[]'
set-update-file: '[]'
set-update-path: '[]'
set-update-value: '[]'
skip-verify: false
subscribe-backoff: 0s
subscribe-heartbeat-interval: 0s
subscribe-lock-retry: 5s
subscribe-mode: stream
subscribe-model: []
subscribe-name: []
subscribe-output: []
subscribe-path: '[]'
subscribe-prefix: ""
subscribe-qos: "0"
subscribe-quiet: false
subscribe-sample-interval: 0s
subscribe-stream-mode: target-defined
subscribe-suppress-redundant: false
subscribe-target: ""
subscribe-updates-only: false
subscribe-watch-config: false
subscriptions:
  bgp:
    paths:
    - /network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state
    sample-interval: 10s
    stream-mode: sample
  port_stats:
    paths:
    - /interfaces/interface[name=Ethernet1]/state/counters
    sample-interval: 10s
    stream-mode: sample
targets:
  10.73.1.105:
    outputs:
    - output1
    subscriptions:
    - bgp
  10.73.1.106:
    outputs:
    - output2
    subscriptions:
    - port_stats
targets-file: ""
timeout: 10s
tls-ca: ""
tls-cert: ""
tls-key: ""
tls-max-version: ""
tls-min-version: ""
tls-version: ""
upgrade-use-pkg: false
username: arista

[gnmic] 2021/05/29 18:53:18.819737 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: debug='true'(bool)
[gnmic] 2021/05/29 18:53:18.819767 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: format='event'(string)
[gnmic] 2021/05/29 18:53:18.819796 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: insecure='true'(bool)
[gnmic] 2021/05/29 18:53:18.819810 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: log-file='/tmp/gnmic.log'(string)
[gnmic] 2021/05/29 18:53:18.820343 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: outputs/output1/event-processors='[TS_processor]'([]interface {})
[gnmic] 2021/05/29 18:53:18.820822 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: outputs/output1/filename='./gnmi_output.txt'(string)
[gnmic] 2021/05/29 18:53:18.821372 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: outputs/output1/type='file'(string)
[gnmic] 2021/05/29 18:53:18.821390 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: password='arista'(string)
[gnmic] 2021/05/29 18:53:18.821432 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: port='6030'(string)
[gnmic] 2021/05/29 18:53:18.821925 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: processors/ts_processor/event-override-ts/precision='ms'(string)
[gnmic] 2021/05/29 18:53:18.822473 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: subscriptions/bgp/paths='[/network-instances/network-instance[name=default]/protocols/protocol/bgp/neighbors/neighbor[neighbor-address=192.168.255.2]/state/s
ession-state]'([]interface {})
[gnmic] 2021/05/29 18:53:18.822946 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: subscriptions/bgp/sample-interval='10s'(string)
[gnmic] 2021/05/29 18:53:18.823418 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: subscriptions/bgp/stream-mode='sample'(string)
[gnmic] 2021/05/29 18:53:18.823895 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: subscriptions/port_stats/paths='[/interfaces/interface[name=Ethernet1]/state/counters]'([]interface {})
[gnmic] 2021/05/29 18:53:18.824306 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: subscriptions/port_stats/sample-interval='10s'(string)
[gnmic] 2021/05/29 18:53:18.824712 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: subscriptions/port_stats/stream-mode='sample'(string)
[gnmic] 2021/05/29 18:53:18.825171 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: targets/10.73.1.105/outputs='[output1]'([]interface {})
[gnmic] 2021/05/29 18:53:18.825682 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: targets/10.73.1.105/subscriptions='[bgp]'([]interface {})
[gnmic] 2021/05/29 18:53:18.826177 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: targets/10.73.1.106/outputs='[output2]'([]interface {})
[gnmic] 2021/05/29 18:53:18.826644 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: targets/10.73.1.106/subscriptions='[port_stats]'([]interface {})
[gnmic] 2021/05/29 18:53:18.826668 /Users/karim/Documents/github.com/karimra/gnmic/app/app.go:233: username='arista'(string)
[gnmic] 2021/05/29 18:53:18.830113 /Users/karim/Documents/github.com/karimra/gnmic/app/subscribe.go:274: starting collector with config &{Name: PrometheusAddress: Debug:true Format:event TargetReceiveBuffer:0 RetryTimer:10s ClusterName:default-cluster Lock
RetryTimer:5s}
[gnmic] 2021/05/29 18:53:18.830141 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:149: starting collector with cfg=&{Name: PrometheusAddress: Debug:true Format:event TargetReceiveBuffer:1000 RetryTimer:10s ClusterName:default-cluste
r LockRetryTimer:5s}
[gnmic] 2021/05/29 18:53:18.830160 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:175: adding target {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":tr
ue,"skip-verify":false,"subscriptions":["bgp"],"outputs":["output1"],"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:53:18.830188 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:175: adding target {"name":"10.73.1.106:6030","address":"10.73.1.106:6030","username":"arista","password":"arista","timeout":10000000000,"insecure":tr
ue,"skip-verify":false,"subscriptions":["port_stats"],"outputs":["output2"],"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:53:18.830278 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:911: *collector.TargetConfig | {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"
insecure":true,"skip-verify":false,"subscriptions":["bgp"],"outputs":["output1"],"buffer-size":1000,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:53:18.830298 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:911: *collector.TargetConfig | {"name":"10.73.1.106:6030","address":"10.73.1.106:6030","username":"arista","password":"arista","timeout":10000000000,"
insecure":true,"skip-verify":false,"subscriptions":["port_stats"],"outputs":["output2"],"buffer-size":1000,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:53:18.830319 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:432: starting output type file
[gnmic] 2021/05/29 18:53:18.830338 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:911: *collector.TargetConfig | {"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"
insecure":true,"skip-verify":false,"subscriptions":["bgp"],"outputs":["output1"],"buffer-size":1000,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:53:18.830352 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:911: *collector.TargetConfig | {"name":"10.73.1.106:6030","address":"10.73.1.106:6030","username":"arista","password":"arista","timeout":10000000000,"
insecure":true,"skip-verify":false,"subscriptions":["port_stats"],"outputs":["output2"],"buffer-size":1000,"retry-timer":10000000000,"gzip":false}
[gnmic] 2021/05/29 18:53:18.830478 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:281: queuing target "10.73.1.106:6030"
[gnmic] 2021/05/29 18:53:18.830491 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:283: subscribing to target: "10.73.1.106:6030"
[gnmic] 2021/05/29 18:53:18.830569 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: parsed scheme: ""
[gnmic] 2021/05/29 18:53:18.830584 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: scheme "" not registered, fallback to default scheme
[gnmic] 2021/05/29 18:53:18.830604 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: ccResolverWrapper: sending update to cc: {[{10.73.1.106:6030  <nil> 0 <nil>}] <nil> <nil>}
[gnmic] 2021/05/29 18:53:18.830615 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: ClientConn switching balancer to "pick_first"
[gnmic] 2021/05/29 18:53:18.831354 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Channel switches to new LB policy "pick_first"
[gnmic] 2021/05/29 18:53:18.831386 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Subchannel Connectivity change to CONNECTING
[gnmic] 2021/05/29 18:53:18.831546 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Subchannel picks a new address "10.73.1.106:6030" to connect
[gnmic] 2021/05/29 18:53:18.831176 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:636: starting target &{Config:{"name":"10.73.1.106:6030","address":"10.73.1.106:6030","username":"arista","password":"arista","timeout":10000000000,"i
nsecure":true,"skip-verify":false,"subscriptions":["port_stats"],"outputs":["output2"],"buffer-size":1000,"retry-timer":10000000000,"gzip":false} Subscriptions:map[port_stats:{"name":"port_stats","paths":["/interfaces/interface[name=Ethernet1]/state/counte
rs"],"mode":"stream","stream-mode":"sample","encoding":"json","sample-interval":10000000000}] m:0xc0005198f8 Client:<nil> SubscribeClients:map[] subscribeCancelFn:map[] pollChan:0xc0000836e0 subscribeResponses:0xc000477f80 errors:0xc000083740 stopped:false
 stopChan:0xc0000837a0 cfn:0x527da0 rootDesc:<nil>}
[gnmic] 2021/05/29 18:53:18.831709 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:648: starting target "10.73.1.106:6030" listener
[gnmic] 2021/05/29 18:53:18.831744 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:57: pickfirstBalancer: UpdateSubConnState: 0xc000525c70, {CONNECTING <nil>}
[gnmic] 2021/05/29 18:53:18.831771 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Channel Connectivity change to CONNECTING
[gnmic] 2021/05/29 18:53:18.831931 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:636: starting target &{Config:{"name":"10.73.1.105:6030","address":"10.73.1.105:6030","username":"arista","password":"arista","timeout":10000000000,"i
nsecure":true,"skip-verify":false,"subscriptions":["bgp"],"outputs":["output1"],"buffer-size":1000,"retry-timer":10000000000,"gzip":false} Subscriptions:map[bgp:{"name":"bgp","paths":["/network-instances/network-instance[name=default]/protocols/protocol/bg
p/neighbors/neighbor[neighbor-address=192.168.255.2]/state/session-state"],"mode":"stream","stream-mode":"sample","encoding":"json","sample-interval":10000000000}] m:0xc000519998 Client:<nil> SubscribeClients:map[] subscribeCancelFn:map[] pollChan:0xc00008
3aa0 subscribeResponses:0xc000380180 errors:0xc000083b00 stopped:false stopChan:0xc000083b60 cfn:<nil> rootDesc:<nil>}
[gnmic] 2021/05/29 18:53:18.831963 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:648: starting target "10.73.1.105:6030" listener
[gnmic] 2021/05/29 18:53:18.832195 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:281: queuing target "10.73.1.105:6030"
[gnmic] 2021/05/29 18:53:18.832212 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:283: subscribing to target: "10.73.1.105:6030"
[gnmic] 2021/05/29 18:53:18.832309 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: parsed scheme: ""
[gnmic] 2021/05/29 18:53:18.832334 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: scheme "" not registered, fallback to default scheme
[gnmic] 2021/05/29 18:53:18.832354 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: ccResolverWrapper: sending update to cc: {[{10.73.1.105:6030  <nil> 0 <nil>}] <nil> <nil>}
[gnmic] 2021/05/29 18:53:18.832366 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: ClientConn switching balancer to "pick_first"
[gnmic] 2021/05/29 18:53:18.832376 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Channel switches to new LB policy "pick_first"
[gnmic] 2021/05/29 18:53:18.832421 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Subchannel Connectivity change to CONNECTING
[gnmic] 2021/05/29 18:53:18.832444 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Subchannel picks a new address "10.73.1.105:6030" to connect
[file_output] 2021/05/29 18:53:18.831958 /Users/karim/Documents/github.com/karimra/gnmic/outputs/file/file_output.go:148: initialized file output: {"Cfg":{"FileName":"./gnmi_output.txt","FileType":"","Format":"event","Multiline":false,"Indent":"","Separato
r":"\n","EventProcessors":["TS_processor"],"ConcurrencyLimit":1000,"EnableMetrics":false,"Debug":false}}
[gnmic] 2021/05/29 18:53:18.832564 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:57: pickfirstBalancer: UpdateSubConnState: 0xc000525f90, {CONNECTING <nil>}
[gnmic] 2021/05/29 18:53:18.832595 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Channel Connectivity change to CONNECTING
[gnmic] 2021/05/29 18:53:18.834297 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Subchannel Connectivity change to READY
[gnmic] 2021/05/29 18:53:18.834339 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:57: pickfirstBalancer: UpdateSubConnState: 0xc000525c70, {READY <nil>}
[gnmic] 2021/05/29 18:53:18.834369 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Channel Connectivity change to READY
[gnmic] 2021/05/29 18:53:18.834393 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:540: target '10.73.1.106:6030' gNMI client created
[gnmic] 2021/05/29 18:53:18.835701 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:543: sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"interfaces"}  elem:{name:"interface"  key:{key:"name"  value
:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}}  mode:SAMPLE  sample_interval:10000000000}}', mode='STREAM', encoding='JSON', to 10.73.1.106:6030
[gnmic] 2021/05/29 18:53:18.835966 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Subchannel Connectivity change to READY
[gnmic] 2021/05/29 18:53:18.835995 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:57: pickfirstBalancer: UpdateSubConnState: 0xc000525f90, {READY <nil>}
[gnmic] 2021/05/29 18:53:18.836018 /Users/karim/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:49: Channel Connectivity change to READY
[gnmic] 2021/05/29 18:53:18.836034 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:540: target '10.73.1.105:6030' gNMI client created
[gnmic] 2021/05/29 18:53:18.836170 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:543: sending gNMI SubscribeRequest: subscribe='subscribe:{subscription:{path:{elem:{name:"network-instances"}  elem:{name:"network-instance"  key:{key
:"name"  value:"default"}}  elem:{name:"protocols"}  elem:{name:"protocol"}  elem:{name:"bgp"}  elem:{name:"neighbors"}  elem:{name:"neighbor"  key:{key:"neighbor-address"  value:"192.168.255.2"}}  elem:{name:"state"}  elem:{name:"session-state"}}  mode:SA
MPLE  sample_interval:10000000000}}', mode='STREAM', encoding='JSON', to 10.73.1.105:6030
[gnmic] 2021/05/29 18:53:18.975726 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543245739  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-broadcast-pkts"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:18.975885 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543262482  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-discards"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:18.975982 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543270668  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:18.976144 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:bgp Response:update:{timestamp:1622288144682661909  update:{path:{elem:{name:"network-instan
ces"}  elem:{name:"network-instance"  key:{key:"name"  value:"default"}}  elem:{name:"protocols"}  elem:{name:"protocol"  key:{key:"identifier"  value:"BGP"}  key:{key:"name"  value:"BGP"}}  elem:{name:"bgp"}  elem:{name:"neighbors"}  elem:{name:"neighbor"
  key:{key:"neighbor-address"  value:"192.168.255.2"}}  elem:{name:"state"}  elem:{name:"session-state"}}  val:{string_val:"ESTABLISHED"}}}}
[gnmic] 2021/05/29 18:53:18.976230 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:bgp Response:sync_response:true}
[gnmic] 2021/05/29 18:53:18.976070 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379541502964  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-fcs-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:18.976649 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314372062532685  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-multicast-pkts"}}  val:{uint_val:880}}}}
[gnmic] 2021/05/29 18:53:18.976774 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314398853569671  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-octets"}}  val:{uint_val:2054455}}}}
[gnmic] 2021/05/29 18:53:18.976877 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314398853598340  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-unicast-pkts"}}  val:{uint_val:26890}}}}
[gnmic] 2021/05/29 18:53:18.977010 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543297158  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-broadcast-pkts"}}  val:{uint_val:1}}}}
[gnmic] 2021/05/29 18:53:18.977132 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543313325  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-discards"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:18.977286 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543322065  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:18.977396 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314374078437086  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-multicast-pkts"}}  val:{uint_val:881}}}}
[gnmic] 2021/05/29 18:53:18.977509 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314398544497993  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-octets"}}  val:{uint_val:2052483}}}}
[gnmic] 2021/05/29 18:53:18.977720 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314398544521966  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-unicast-pkts"}}  val:{uint_val:26890}}}}
[gnmic] 2021/05/29 18:53:18.977793 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:sync_response:true}
[gnmic] 2021/05/29 18:53:28.974825 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:bgp Response:update:{timestamp:1622288144682661909  update:{path:{elem:{name:"network-instan
ces"}  elem:{name:"network-instance"  key:{key:"name"  value:"default"}}  elem:{name:"protocols"}  elem:{name:"protocol"  key:{key:"identifier"  value:"BGP"}  key:{key:"name"  value:"BGP"}}  elem:{name:"bgp"}  elem:{name:"neighbors"}  elem:{name:"neighbor"
  key:{key:"neighbor-address"  value:"192.168.255.2"}}  elem:{name:"state"}  elem:{name:"session-state"}}  val:{string_val:"ESTABLISHED"}}}}
[gnmic] 2021/05/29 18:53:28.975066 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:bgp Response:sync_response:true}
[gnmic] 2021/05/29 18:53:28.976168 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543245739  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-broadcast-pkts"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:28.976313 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543262482  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-discards"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:28.976472 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543270668  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:28.976594 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379541502964  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-fcs-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:28.977140 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314402064974882  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-multicast-pkts"}}  val:{uint_val:881}}}}
[gnmic] 2021/05/29 18:53:28.977283 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314408676992416  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-octets"}}  val:{uint_val:2055331}}}}
[gnmic] 2021/05/29 18:53:28.977386 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314408677030511  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-unicast-pkts"}}  val:{uint_val:26900}}}}
[gnmic] 2021/05/29 18:53:28.977470 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543297158  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-broadcast-pkts"}}  val:{uint_val:1}}}}
[gnmic] 2021/05/29 18:53:28.977627 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543313325  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-discards"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:28.977795 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543322065  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:28.977887 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314404079622122  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-multicast-pkts"}}  val:{uint_val:882}}}}
[gnmic] 2021/05/29 18:53:28.977994 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314408272695893  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-octets"}}  val:{uint_val:2053340}}}}
[gnmic] 2021/05/29 18:53:28.978078 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314408272741223  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-unicast-pkts"}}  val:{uint_val:26900}}}}
[gnmic] 2021/05/29 18:53:28.978114 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:sync_response:true}
[gnmic] 2021/05/29 18:53:38.974704 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:bgp Response:update:{timestamp:1622288144682661909  update:{path:{elem:{name:"network-instan
ces"}  elem:{name:"network-instance"  key:{key:"name"  value:"default"}}  elem:{name:"protocols"}  elem:{name:"protocol"  key:{key:"identifier"  value:"BGP"}  key:{key:"name"  value:"BGP"}}  elem:{name:"bgp"}  elem:{name:"neighbors"}  elem:{name:"neighbor"
  key:{key:"neighbor-address"  value:"192.168.255.2"}}  elem:{name:"state"}  elem:{name:"session-state"}}  val:{string_val:"ESTABLISHED"}}}}
[gnmic] 2021/05/29 18:53:38.974853 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:bgp Response:sync_response:true}
[gnmic] 2021/05/29 18:53:38.975839 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543245739  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-broadcast-pkts"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:38.976008 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543262482  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-discards"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:38.976109 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543270668  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:38.976213 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379541502964  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-fcs-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:38.976310 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314402064974882  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-multicast-pkts"}}  val:{uint_val:881}}}}
[gnmic] 2021/05/29 18:53:38.976392 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314418598985230  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-octets"}}  val:{uint_val:2055961}}}}
[gnmic] 2021/05/29 18:53:38.976474 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314418599022938  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-unicast-pkts"}}  val:{uint_val:26909}}}}
[gnmic] 2021/05/29 18:53:38.976560 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543297158  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-broadcast-pkts"}}  val:{uint_val:1}}}}
[gnmic] 2021/05/29 18:53:38.976643 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543313325  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-discards"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:38.976726 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543322065  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:38.976860 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314404079622122  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-multicast-pkts"}}  val:{uint_val:882}}}}
[gnmic] 2021/05/29 18:53:38.976953 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314418704432389  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-octets"}}  val:{uint_val:2054040}}}}
[gnmic] 2021/05/29 18:53:38.977034 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314418704464021  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-unicast-pkts"}}  val:{uint_val:26910}}}}
[gnmic] 2021/05/29 18:53:38.977079 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:sync_response:true}
[gnmic] 2021/05/29 18:53:48.974843 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:bgp Response:update:{timestamp:1622288144682661909  update:{path:{elem:{name:"network-instan
ces"}  elem:{name:"network-instance"  key:{key:"name"  value:"default"}}  elem:{name:"protocols"}  elem:{name:"protocol"  key:{key:"identifier"  value:"BGP"}  key:{key:"name"  value:"BGP"}}  elem:{name:"bgp"}  elem:{name:"neighbors"}  elem:{name:"neighbor"
  key:{key:"neighbor-address"  value:"192.168.255.2"}}  elem:{name:"state"}  elem:{name:"session-state"}}  val:{string_val:"ESTABLISHED"}}}}
[gnmic] 2021/05/29 18:53:48.975015 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:bgp Response:sync_response:true}
[gnmic] 2021/05/29 18:53:48.975808 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543245739  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-broadcast-pkts"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:48.975936 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543262482  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-discards"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:48.976060 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543270668  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:48.976160 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379541502964  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-fcs-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:48.976592 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314402064974882  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-multicast-pkts"}}  val:{uint_val:881}}}}
[gnmic] 2021/05/29 18:53:48.976690 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314428612678533  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-octets"}}  val:{uint_val:2056669}}}}
[gnmic] 2021/05/29 18:53:48.976808 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314428612704983  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"in-unicast-pkts"}}  val:{uint_val:26919}}}}
[gnmic] 2021/05/29 18:53:48.976906 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543297158  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-broadcast-pkts"}}  val:{uint_val:1}}}}
[gnmic] 2021/05/29 18:53:48.977000 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543313325  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-discards"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:48.977172 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622294379543322065  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-errors"}}  val:{uint_val:0}}}}
[gnmic] 2021/05/29 18:53:48.977385 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314404079622122  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-multicast-pkts"}}  val:{uint_val:882}}}}
[gnmic] 2021/05/29 18:53:48.977603 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314428624393093  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-octets"}}  val:{uint_val:2054767}}}}
[gnmic] 2021/05/29 18:53:48.977721 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:update:{timestamp:1622314428624450423  update:{path:{elem:{name:"interfa
ces"}  elem:{name:"interface"  key:{key:"name"  value:"Ethernet1"}}  elem:{name:"state"}  elem:{name:"counters"}  elem:{name:"out-unicast-pkts"}}  val:{uint_val:26920}}}}
[gnmic] 2021/05/29 18:53:48.977809 /Users/karim/Documents/github.com/karimra/gnmic/collector/collector.go:657: received gNMI Subscribe Response: &{SubscriptionName:port_stats Response:sync_response:true}
$     

@karimra
Copy link
Owner

karimra commented May 29, 2021

As discussed offline, processors names are case insensitive and are referenced internally with lower case letters.
This is due to how viper handles map keys (spf13/viper#373)

I will add a note in the docs and try to find a workaround.
Thanks for your help and patience!

@ksator
Copy link
Author

ksator commented May 29, 2021

Thank you so much for your help!
Very much appreciated!

@ksator ksator closed this as completed Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants