wennan.he
11/18/2022, 6:07 PMwennan.he
11/18/2022, 7:39 PMwennan.he
11/18/2022, 10:18 PMTerje Kvernes
11/18/2022, 10:44 PMwennan.he
11/19/2022, 2:18 AM/opt/osquery/share/osquery/lenses/{*}.aug
/opt/osquery/share/osquery/packs/{*}.conf
/opt/osquery/share/osquery/osquery.example.conf
and for /opt/osquery/bin/osqueryd, it looks like i just need to change /usr/lib/systemd/system/osqueryd.service and link it to new directory, right?
what about /opt/osquery/bin/osqueryctl? if i move it to like usr/local/bin, is there any file i need to change?slevchenko
11/21/2022, 8:12 AMJean Jordaan
11/21/2022, 3:29 PMhappy-dude
11/21/2022, 4:21 PMwarnings at 5MB, 10MB, and 13MB values I believe this indicates that a query result from osquery is larger than theCopy codeLinesize exceeds TLS logger maximum:
logger_tls_max_linesize
value and is being dropped/not sent to the TLS endpoint. At the moment, that value is set to the default 1MB
currently, I configured osqueryd to run with the following
--config_tls_max_attempts=6
--database_path=/state/osquery.db
--decorations_top_level=true
--disable_events=true
--disable_extensions=false
--disable_watchdog=false
--docker_socket=/run/docker.sock
--enroll_secret_path=/etc/osquery/enroll_secret.txt
--enroll_tls_endpoint=<endpoint>
--host_identifier=hostname
--logger_plugin=tls
--logger_tls_endpoint=<endpoint>
--logger_tls_max_linesize=1048576
--logger_tls_period=60
--read_max=209715200
--table_delay=200
--tls_hostname=<endpoint>
--tls_session_reuse=true
--tls_session_timeout=3600
--utc=true
--watchdog_memory_limit=900
I was curious if anyone would know if there are settings I can tweak to
avoid dropping these results, or if there was a way I can investigate
which query pack was causing such a large result?wennan.he
11/21/2022, 6:51 PMwennan.he
11/22/2022, 1:39 AMcmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCPACK_GENERATOR=DEB \
-DOSQUERY_PACKAGE_VERSION=$(OSQUERY_VERSION) \
-DOSQUERY_DATA_PATH=$(shell pwd)/build/package_data \
-DCMAKE_INSTALL_PREFIX=/usr/local \
../osquery-packaging
i want to know if i don't use osquery-packaging, is there anyway to set these vars?Hamish Earp
11/22/2022, 9:22 AMBrandon Mesa
11/22/2022, 3:02 PMHugh (Zercurity)
11/22/2022, 3:54 PMHugh (Zercurity)
11/22/2022, 3:55 PMJarod Reyes
11/22/2022, 6:37 PMwennan.he
11/22/2022, 8:59 PMwennan.he
11/23/2022, 12:40 AMNhat Truong
11/24/2022, 6:27 AMfleet-sv | {"component":"redis","level":"info","mode":"standalone","ts":"2022-11-24T06:25:47.483252226Z"}
fleet-sv | Failed to start: initializing osquery logging: create filesystem status logger: perm check: open /logs/osqueryd.status.log: permission denied
Nhat Truong
11/24/2022, 6:28 AMNhat Truong
11/24/2022, 6:28 AMvolumes:
- ./osquery:/fleet/
- ./logs:/logs/
- ./vulndb:/vulndb/
Jshi
11/24/2022, 9:15 AMwennan.he
11/25/2022, 4:33 AMNick Leffler
11/25/2022, 9:11 PMenroll_secret_path
switch or does it only require the key to be sent the first timeNick Leffler
11/25/2022, 10:41 PMSubash Rajaa
11/28/2022, 6:14 AMSubash Rajaa
11/28/2022, 6:14 AMStefano Bonicatti
11/28/2022, 8:38 AMallister
11/28/2022, 2:36 PM/Users/USER/Library/Application Support/Firefox/Profiles/k5wvl3gs.default-release/storage/default/https+++totp.app
?allister
11/28/2022, 2:42 PM<http://csb.app|csb.app>
end to the path with a hash-looking random 6 character prefix on the basename, e.g.:wennan.he
11/28/2022, 6:43 PM