Hey Team, I'm having a problem in getting data fro...
# fleet
j
Hey Team, I'm having a problem in getting data from osquery.db via osqueryi. it shows me different results from distributedWrite API response. For example, this
osquery_flags
query. DistributedWrite API give me the correct data from what I've changed via Fleet App Config agent options. But, osqueryi data never change:
Copy code
osquery> select name, value from osquery_flags where name in ("distributed_interval", "config_tls_refresh", "config_refresh", "logger_tls_period");
+----------------------+-------+
| name                 | value |
+----------------------+-------+
| config_refresh       | 0     |
| distributed_interval | 60    |
| logger_tls_period    | 4     |
+----------------------+-------+
DistributedWrite response:
Copy code
"fleet_detail_query_osquery_flags":[{"name":"config_refresh","value":"20"},{"name":"distributed_interval","value":"120"},{"name":"logger_tls_period","value":"10"}]
Am I missing some steps when using osqueryi? Could anyone give me some advises? Thanks!
k
Hey @Jian Zheng. This is the expected behavior. osqueryi and osqueryd don’t share a single configuration, so only the osqueryd configuration is changed based on the options set in Fleet.
j
I see, what if I want to check my osquery local db about this configuration change set in fleet. Is there a way?
k
In
osqueryi
, you can connect to the same extension socket that
osqueryd
uses. There’s info on connecting to another extension socket here under “Inspecting daemon state using the shell”: https://osquery.readthedocs.io/en/stable/deployment/debugging/