I am trying to debug my standalone installation of packetbeat, which I've configured to output to a file. I am not getting any file output and I'm not clear on how to get more information on what the problem would be. Appreciate any tips or advice
This is my output when I run a config test:
root@logshipper:/tmp/packetbeat# /usr/bin/packetbeat.sh -configtest
2017/05/29 22:31:19.211285 beat.go:285: INFO Home path: [/usr/share/packetbeat] Config path: [/etc/packetbeat] Data path: [/var/lib/packetbeat] Logs path: [/var/log/packetbeat]
2017/05/29 22:31:19.211395 beat.go:186: INFO Setup Beat: packetbeat; Version: 5.4.0
2017/05/29 22:31:19.211443 processor.go:44: DBG Processors:
2017/05/29 22:31:19.211471 beat.go:192: DBG Initializing output plugins
2017/05/29 22:31:19.211577 file.go:54: INFO File output path set to: /tmp/yeah
2017/05/29 22:31:19.211630 file.go:55: INFO File output base filename set to: packetbeat
2017/05/29 22:31:19.211668 file.go:58: INFO Rotate every bytes set to: 10240000
2017/05/29 22:31:19.211716 file.go:62: INFO Number of files set to: 7
2017/05/29 22:31:19.211750 outputs.go:108: INFO Activated file as output plugin.
2017/05/29 22:31:19.211776 publish.go:238: DBG Create output worker
2017/05/29 22:31:19.211843 publish.go:280: DBG No output is defined to store the topology. The server fields might not be filled.
2017/05/29 22:31:19.211887 publish.go:295: INFO Publisher name: logshipper
2017/05/29 22:31:19.212014 async.go:63: INFO Flush Interval set to: -1s
2017/05/29 22:31:19.212047 async.go:64: INFO Max Bulk Size set to: -1
2017/05/29 22:31:19.212084 procs.go:79: INFO Process matching disabled
2017/05/29 22:31:19.212177 packetbeat.go:109: DBG Initializing protocol plugins
2017/05/29 22:31:19.212210 protos.go:89: INFO registered protocol plugin: cassandra
2017/05/29 22:31:19.212234 protos.go:89: INFO registered protocol plugin: dns
2017/05/29 22:31:19.212260 protos.go:89: INFO registered protocol plugin: http
2017/05/29 22:31:19.212282 protos.go:89: INFO registered protocol plugin: nfs
2017/05/29 22:31:19.212304 protos.go:89: INFO registered protocol plugin: pgsql
2017/05/29 22:31:19.212326 protos.go:89: INFO registered protocol plugin: redis
2017/05/29 22:31:19.212348 protos.go:89: INFO registered protocol plugin: thrift
2017/05/29 22:31:19.212369 protos.go:89: INFO registered protocol plugin: amqp
2017/05/29 22:31:19.212390 protos.go:89: INFO registered protocol plugin: mongodb
2017/05/29 22:31:19.212411 protos.go:89: INFO registered protocol plugin: mysql
2017/05/29 22:31:19.212433 protos.go:89: INFO registered protocol plugin: memcache
2017/05/29 22:31:19.212454 packetbeat.go:115: DBG Initializing sniffer
2017/05/29 22:31:19.212479 sniffer.go:270: DBG BPF filter: ''
2017/05/29 22:31:19.212503 sniffer.go:156: DBG Sniffer type: pcap device: any
2017/05/29 22:31:19.213486 tcp.go:307: DBG tcp%!(EXTRA string=Port map: %v, map[uint16]protos.Protocol=map[])
2017/05/29 22:31:19.213530 udp.go:94: DBG Port map: map[]
2017/05/29 22:31:19.213567 decoder.go:98: DBG Layer type: Linux SLL
Config OK
root@logshipper:/tmp/packetbeat#
Log file after running packetbeat:
root@logshipper:/tmp/packetbeat# cat /var/log/packetbeat/packetbeat
2017-05-29T22:17:16Z INFO Home path: [/usr/share/packetbeat] Config path: [/etc/packetbeat] Data path: [/var/lib/packetbeat] Logs path: [/var/log/packetbeat]
2017-05-29T22:17:16Z INFO Setup Beat: packetbeat; Version: 5.4.0
2017-05-29T22:17:16Z INFO File output path set to: /tmp/testamundo/
2017-05-29T22:17:16Z INFO File output base filename set to: packetbeat
2017-05-29T22:17:16Z INFO Rotate every bytes set to: 10240000
2017-05-29T22:17:16Z INFO Number of files set to: 7
2017-05-29T22:17:16Z INFO Activated file as output plugin.
2017-05-29T22:17:16Z INFO Publisher name: logshipper
2017-05-29T22:17:16Z INFO Flush Interval set to: -1s
2017-05-29T22:17:16Z INFO Max Bulk Size set to: -1
2017-05-29T22:17:16Z INFO Process matching disabled
2017-05-29T22:17:16Z INFO registered protocol plugin: http
2017-05-29T22:17:16Z INFO registered protocol plugin: memcache
2017-05-29T22:17:16Z INFO registered protocol plugin: mongodb
2017-05-29T22:17:16Z INFO registered protocol plugin: pgsql
2017-05-29T22:17:16Z INFO registered protocol plugin: redis
2017-05-29T22:17:16Z INFO registered protocol plugin: thrift
2017-05-29T22:17:16Z INFO registered protocol plugin: amqp
2017-05-29T22:17:16Z INFO registered protocol plugin: cassandra
2017-05-29T22:17:16Z INFO registered protocol plugin: dns
2017-05-29T22:17:16Z INFO registered protocol plugin: mysql
2017-05-29T22:17:16Z INFO registered protocol plugin: nfs
2017-05-29T22:17:16Z INFO packetbeat start running.
2017-05-29T22:17:16Z INFO Metrics logging every 30s
2017-05-29T22:17:46Z INFO No non-zero metrics in the last 30s
2017-05-29T22:18:16Z INFO No non-zero metrics in the last 30s
2017-05-29T22:18:46Z INFO No non-zero metrics in the last 30s
2017-05-29T22:19:16Z INFO No non-zero metrics in the last 30s
2017-05-29T22:19:46Z INFO No non-zero metrics in the last 30s
2017-05-29T22:20:16Z INFO No non-zero metrics in the last 30s
2017-05-29T22:20:46Z INFO No non-zero metrics in the last 30s
2017-05-29T22:21:16Z INFO No non-zero metrics in the last 30s
2017-05-29T22:21:46Z INFO No non-zero metrics in the last 30s
2017-05-29T22:22:16Z INFO No non-zero metrics in the last 30s
2017-05-29T22:22:46Z INFO No non-zero metrics in the last 30s
2017-05-29T22:23:16Z INFO No non-zero metrics in the last 30s
2017-05-29T22:23:27Z INFO Packetbeat send stop signal