Title
#general
d

David Payne

01/03/2020, 5:17 PM
I have a question regarding setting up logging to tls and the filesystem. I've been looking into the documentation on how to provide multiple logging plugins via the flag system. Which I've been using the flag system for the full setup process, due to needing to have this setup between Linux, Mac, and Windows machines. This process is currently being tested on a Windows 10 machine. The tls is reporting back to our fleet server, which is working perfectly. However, when I added the filesystem appending, it will report to tls fine, but it never builds the logs on the local machine. And if I utilize the supplied config it will build to the filesystem properly as well, but this method removes tls. I have a felling I might be missing something, I included a screen snippet below to show our flags file on the Windows machine. Any advice would be highly appreciated! Here is also where I've been grabbing my information from the documentation: https://osquery.readthedocs.io/en/stable/installation/cli-flags/#loggingresults-flags Thank you for any assistance you can offer.
a

Andrea

01/03/2020, 5:41 PM
If I need logs on
filesystem
I usually specify
--logger_path
flag with the location where to put those logs (on your screenshot that flag is missing btw). I have noticed though that on Windows I never find the logs where specified, but I find them on
C:\Windows\Temp
(or some sub-directory) , or in
C:\Users\username\AppData\Local\Temp\
depending on how I run osquery (debug/release mode). Never had the chance to investigate better though (maybe I am missing something)
d

David Payne

01/03/2020, 7:24 PM
Thank you for the information. I went ahead and did a quick check to both of those directories and didn't find anything. So I went and throw a logger_path in for appdata for the user folder to see if I would receive filesystem logs that way. However, I still haven't received any local logs. I also here is a new attachment showing the adjusted flag file.
zwass

zwass

01/03/2020, 10:18 PM
You need to make sure that the config sent by Fleet includes both logger plugins. Right now you have
--config_tls_endpoint
set and that means some values in your flagfile could be overridden by the config returned by Fleet.
d

David Payne

01/06/2020, 3:05 PM
Makes sense, however where exactly do I find the OsQuery Configuration that's being sent over to the clients from Fleet? I checked the path that is set in my configuration, which I got from a tutorial, and that path doesn't exist on my linux fleet machine. I noted that in some screenshots from others they have a configuration tab on the left hand side when logged into there fleet. However I do not have a configuration tab which draws more confusion. Thank you for your assistance.
zwass

zwass

01/08/2020, 6:55 PM
You'll need to use the
fleetctl
CLI to get and modify configuration: https://github.com/kolide/fleet/tree/master/docs/cli