stephenbStephen BrownElastic Team Member
Silly question did you run
filebeat setup -e
After you you enabled and configured the module?
++++++++++++++++++++++++++++++++++++++++++++++++
I am starting it form the command line
and not a silly question! I know I ran the set up at one stage but running it just now returned an error "API key: invalid ApiKey value
???
I will try with creds....
Ah! now I get sensible errors about the privs of the roles. I ran setup repeatedly adding roles to the beat_setup role role until it completed. I now have the ingestion pipeline set up and the index created.
Do all the machines I install filebeat on need to contact kibana for set up. I would rather fiddle with the firewall setting for each sensor.
Anyway I now have setup completing and have gone back to running filebeat:
2022-09-22T15:19:05.805+1200 INFO instance/beat.go:686 Home path: [/usr/share/filebeat] Config path: [/etc/filebeat] Data path: [/var/lib/filebeat] Logs path: [/var/log/filebeat] Hostfs Path: [/]
2022-09-22T15:19:05.805+1200 INFO instance/beat.go:694 Beat ID: c84062c1-3afa-4a6a-9676-a0e19a205ed7
2022-09-22T15:19:05.807+1200 INFO [seccomp] seccomp/seccomp.go:124 Syscall filter successfully installed
2022-09-22T15:19:05.807+1200 INFO [beat] instance/beat.go:1040 Beat info {"system_info": {"beat": {"path": {"config": "/etc/filebeat", "data": "/var/lib/filebeat", "home": "/usr/share/filebeat", "logs": "/var/log/filebeat"}, "type": "filebeat"
, "uuid": "c84062c1-3afa-4a6a-9676-a0e19a205ed7"}}}
2022-09-22T15:19:05.807+1200 INFO [beat] instance/beat.go:1049 Build info {"system_info": {"build": {"commit": "1d05ba86138cfc9a5ae5c0acc64a57b8d81678ff", "libbeat": "7.17.1", "time": "2022-02-23T23:38:04.000Z", "version": "7.17.1"}}}
2022-09-22T15:19:05.807+1200 INFO [beat] instance/beat.go:1052 Go runtime info {"system_info": {"go": {"os":"linux","arch":"amd64","max_procs":40,"version":"go1.17.6"}}}
2022-09-22T15:19:05.809+1200 INFO [beat] instance/beat.go:1056 Host info {"system_info": {"host": {"architecture":"x86_64","boot_time":"2022-09-18T03:05:20+12:00","containerized":false,"name":"secmonprd14","ip":["127.0.0.1/8","fe80::10/128","f
e80::e643:4bff:fe25:1cee/64","130.216.2.68/24","fe80::e643:4bff:fe25:1cf0/64"],"kernel_version":"4.15.0-192-generic",
untu","name":"Ubuntu","version":"18.04.2 LTS (Bionic Beaver)","major":18,"minor":4,"patch":2,"codename":"bionic"},"timezone":"NZST","timezone_offset_sec":43200,"id":"33f60b3e40bf4cb4a40cbe8aeb5492da"}}}
2022-09-22T15:19:05.809+1200 INFO [beat] instance/beat.go:1085 Process info {"system_info": {"process": {"capabilities": {"inheritable":null,"permitted":["chown","dac_override","dac_read_search","fowner","fsetid",
","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","a
udit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read"],"effective":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_servic
e","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap
","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read"],"bounding":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_r
aw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog"
,"wake_alarm","block_suspend","audit_read"],"ambient":null}, "cwd": "/home/rful011", "exe": "/usr/share/filebeat/bin/filebeat", "name": "filebeat", "pid": 11129, "ppid": 11128, "seccomp": {"mode":"filter","no_new_privs":true}, "start_time": "2022-09-22T15:19
:04.680+1200"}}}
2022-09-22T15:19:05.809+1200 INFO instance/beat.go:328 Setup Beat: filebeat; Version: 7.17.1
2022-09-22T15:19:05.809+1200 INFO [index-management] idxmgmt/std.go:184 Set output.elasticsearch.index to 'filebeat-7.17.1' as ILM is enabled.
2022-09-22T15:19:05.810+1200 INFO [esclientleg] eslegclient/connection.go:105 elasticsearch url: https://secesprd02.its.auckland.ac.nz:9200
2022-09-22T15:19:05.810+1200 INFO [publisher] pipeline/module.go:113 Beat name: secmonprd14
2022-09-22T15:19:05.811+1200 INFO [monitoring] log/log.go:142 Starting metrics logging every 30s
2022-09-22T15:19:05.811+1200 INFO instance/beat.go:492 filebeat start running.
2022-09-22T15:19:05.812+1200 INFO memlog/store.go:119 Loading data file of '/var/lib/filebeat/registry/filebeat' succeeded. Active transaction id=0
2022-09-22T15:19:05.812+1200 INFO memlog/store.go:124 Finished loading transaction log file for '/var/lib/filebeat/registry/filebeat'. Active transaction id=4
2022-09-22T15:19:05.812+1200 INFO [registrar] registrar/registrar.go:109 States Loaded from registrar: 1
2022-09-22T15:19:05.812+1200 INFO [crawler] beater/crawler.go:71 Loading Inputs: 0
2022-09-22T15:19:05.812+1200 INFO [crawler] beater/crawler.go:108 Loading and starting Inputs completed. Enabled inputs: 0
2022-09-22T15:19:05.813+1200 INFO cfgfile/reload.go:164 Config reloader started
2022-09-22T15:19:35.821+1200 INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"cfs":{"period":{"us":100000}},"id":"user.slice"},"cpuacct":{"id":"user.slice","total":{"ns":
102041692329015}},"memory":{"id":"user.slice","mem":{"limit":{"bytes":9223372036854771712},"usage":{"bytes":1335996416}}}},"cpu":{"system":{"ticks":160,"time":{"ms":169}},"total":{"ticks":380,"time":{"ms":391},"value":380},"user":{"ticks":220,"time":{"ms":22
2}}},"handles":{"limit":{"hard":1048576,"soft":1024},"open":11},"info":{"ephemeral_id":"0ca8d2b4-c16a-43d4-8f03-ea42ef6a9613","uptime":{"ms":30111},"version":"7.17.1"},"memstats":{"gc_next":19253904,"memory_alloc":11836600,"memory_sys":41763848,"memory_total
":57014512,"rss":124764160},"runtime":{"goroutines":61}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"active":0},"type":"elasticsearch"},"pipeline":{"clients":0,"events":{"active":0},
"queue":{"max_events":4096}}},"registrar":{"states":{"current":0}},"system":{"cpu":{"cores":40},"load":{"1":9.35,"15":10.23,"5":10.02,"norm":{"1":0.2338,"15":0.2558,"5":0.2505}}}}}}
and the monitoring entries continue but no actual logs are shipped