-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc Updates #440
Merged
Merged
Doc Updates #440
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Debugging Launcher | ||
|
||
To debug launcher, look at the logs. Depending on what's happening, | ||
you may need to enable debug level logs. | ||
|
||
## Logs | ||
|
||
Launcher logs to stdout and stderr. Where these are placed, depends on | ||
your system, and how launcher is packaged. | ||
|
||
### Package Identifier | ||
|
||
When launcher is packaged, it uses an _identifier_ to allow multiple | ||
instances to co-exist. This _identifier_ appears in the systemd unit | ||
name, and the logging paths. It default to `launcher` | ||
|
||
For [Kolide | ||
Cloud](https://kolide.com/?utm_source=oss&utm_medium=readme&utm_campaign=launcher), | ||
this identifier has been `kolide`, `launcher` and `kolide-app`. | ||
|
||
### MacOS Logs | ||
|
||
On MacOS Launcher will generally be running via launchd. Launchd has | ||
an option for where to route logs. The launcher packaging usually sets | ||
this to be in the directory `/var/log/<identifier>/` | ||
|
||
### Linux Logs | ||
|
||
Most modern linux systems use systemd, and the associated | ||
journald. The unit file is likely named `launcher`, so logs can be | ||
viewed with `journalctl -u launcher` | ||
|
||
### Windows Logs | ||
|
||
When launcher is running as a service, it logs to the windows event | ||
log system. You should be able to see logs there. | ||
|
||
## Enabling Debug Mode | ||
|
||
When running on a posix system, launcher can be toggled into debug | ||
logging mode. You can do this by sending launcher a `USR2` signal. | ||
|
||
For example `pkill -USR2 launcher` | ||
|
||
Note: windows does not support this as a runtime change | ||
|
||
## Running in the foreground | ||
|
||
Often, the easiest way to debug launcher is to simply run it in the | ||
foreground. | ||
|
||
1. Ensure it's stopped in your init system | ||
2. Look at your init script / systemd unit file / service definition | ||
3. Add a debug option, and run | ||
|
||
### Special windows foreground mode | ||
|
||
Windows services are a bit different than programs. On windows, | ||
launcher has three modes of running, they all support the `-config` | ||
option. | ||
|
||
1. Foreground mode. Invoked as `launcher`, it runs as a windows exe utable | ||
1. Service Mode. Invoked as `launcher svc`, this will only work as a service | ||
1. Service Foreground. Invoked as `launcher svc-fg` this uses golang's | ||
debug framework to run the service in the foreground. It | ||
additionally sets the logging to debug mode. | ||
|
||
Using `svc-fg` is the recommended approach | ||
|
||
## Getting Help | ||
|
||
For support with our SaaS, [Kolide K2](https://app.kolide.com/?utm_source=oss&utm_medium=readme&utm_campaign=launcher), | ||
please use the Intercom Help links inside that application, these are | ||
floating in the lower right. Or, email support@kolide.co | ||
|
||
For support regarding issues with our open-source projects, please | ||
feel free to reach out to us in the osquery Slack team in the #kolide | ||
channel, [invites are | ||
here](https://join.slack.com/t/osquery/shared_invite/zt-h29zm0gk-s2DBtGUTW4CFel0f0IjTEw) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add something about restarting launcher