Jian Zheng
08/24/2023, 11:20 PMosquery_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:
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:
"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!Kathy Satterlee
08/24/2023, 11:27 PMJian Zheng
08/24/2023, 11:34 PMKathy Satterlee
08/24/2023, 11:41 PMosqueryi, 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/