aldente
09/06/2023, 7:12 PMyum (both osqueryd --version and osqueryi --version report 5.9.1), but they are still reporting as 3.3 in Fleet. we also had mac hosts running 3.x, but they upgraded and report to Fleet just fine. I’ve exhausted a few routes of troubleshooting, tried osqueryctl stop and osqueryctl start several times, checked the flags file, confirmed there are no duplicate processes running, but can’t figure out why Fleet is not reporting the right version or where the disconnect is. wondering anyone has ideas for where to look next or any insight into a major version osquery upgrade on linux.Kathy Satterlee
09/06/2023, 7:18 PMaldente
09/06/2023, 8:00 PMaldente
09/06/2023, 8:12 PMKathy Satterlee
09/06/2023, 8:20 PMaldente
09/07/2023, 1:49 PM$ cat <http://osqueryd.INFO|osqueryd.INFO>
Log file created at: 2023/09/06 18:54:32
Running on machine: <http://jthiel.vm.dev.etsycloud.com|jthiel.vm.dev.etsycloud.com>
Running duration (h:mm:ss): 0:00:00
Log line format: [IWEF]yyyymmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0906 18:54:32.056210 28101 eventfactory.cpp:156] Event publisher not enabled: BPFEventPublisher: Publisher disabled via configuration
I0906 18:54:32.056285 28101 eventfactory.cpp:156] Event publisher not enabled: auditeventpublisher: Publisher disabled via configuration
I0906 18:54:32.056293 28101 eventfactory.cpp:156] Event publisher not enabled: inotify: Publisher disabled via configuration
I0906 18:54:32.056300 28101 eventfactory.cpp:156] Event publisher not enabled: syslog: Publisher disabled via configuration
flags:
$ cat /etc/osquery/osquery.flags
# Use this comment to trigger restart - 1
--config_plugin=tls,filesystem
--config_tls_endpoint=/api/v1/osquery/config
--config_tls_refresh=10
--enroll_tls_endpoint=/api/v1/osquery/enroll
--enroll_secret_path=<redacted>
--host_identifier=hostname
--tls_server_certs=/var/osquery/certs/certs.pem
--tls_hostname=<redacted>aldente
09/07/2023, 1:49 PMKathy Satterlee
09/07/2023, 2:06 PM--enroll_secret_path=/etc/osquery/enroll_secret
--tls_server_certs=/etc/osquery/fleet.crt
--tls_hostname=<http://fleet.example.com|fleet.example.com>
--host_identifier=uuid
--enroll_tls_endpoint=/api/osquery/enroll
--config_plugin=tls
--config_tls_endpoint=/api/osquery/config
--config_refresh=10
--disable_distributed=false
--distributed_plugin=tls
--distributed_interval=10
--distributed_tls_max_attempts=3
--distributed_tls_read_endpoint=/api/osquery/distributed/read
--distributed_tls_write_endpoint=/api/osquery/distributed/write
--logger_plugin=tls
--logger_tls_endpoint=/api/osquery/log
--logger_tls_period=10aldente
09/07/2023, 2:23 PMaldente
09/07/2023, 2:25 PMsudo cp /opt/osquery/share/osquery/osquery.example.conf /etc/osquery/osquery.conf
# sudo service osqueryd start
sudo systemctl start osqueryd
but previously had been running osqueryctl start - is there a difference?Kathy Satterlee
09/07/2023, 2:50 PMosqueryctl is generally used to run osquery when you're testing out new configs, but it's a valid way to start things up so I don't see any likely issues with it. That being said, I'd generally run it as a system service just because it's more the default.aldente
09/11/2023, 6:02 PMSep 11 17:32:55 osqueryd[3922]: ERROR: illegal value '10 ' specified for uint64 flag 'config_refresh'
Sep 11 17:32:55 osqueryd[3922]: ERROR: illegal value '10 ' specified for uint64 flag 'distributed_interval'
Sep 11 17:32:55 osqueryd[3922]: ERROR: illegal value '3 ' specified for uint64 flag 'distributed_tls_max_attempts'
Sep 11 17:32:55 osqueryd[3922]: ERROR: illegal value '10# Use this comment to trigger restart - 1' specified for uint64 flag 'logger_tls_period'aldente
09/11/2023, 8:01 PMaldente
09/11/2023, 8:14 PMI0911 20:10:55.513442 11269 eventfactory.cpp:156] Event publisher not enabled: BPFEventPublisher: Publisher disabled via configuration
I0911 20:10:55.514333 11269 eventfactory.cpp:156] Event publisher not enabled: auditeventpublisher: Publisher disabled via configuration
I0911 20:10:55.514343 11269 eventfactory.cpp:156] Event publisher not enabled: inotify: Publisher disabled via configuration
I0911 20:10:55.514353 11269 eventfactory.cpp:156] Event publisher not enabled: syslog: Publisher disabled via configuration
I0911 20:10:55.582325 11269 eventfactory.cpp:352] The minimum events expiration timeout for hardware_events has been adjusted: 21660
I0911 20:11:40.589288 11409 query.cpp:119] Storing initial results for new scheduled query: pack_vuln-management_potential_nfs_mountedaldente
09/11/2023, 8:44 PMaldente
09/11/2023, 9:21 PM