Skip to content
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

Allow a url to be used for the logging server #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

onfire4g05
Copy link

This adds another option for the logging method that will allow for an http POST with params message and udid. The thought behind adding the UDID would be to use a simple script on the server-side that would interface with the MDM to get the device info that initiated the request and then proceed to log it. For example, we'll use this to send a Slack message to our admins that we can use to go directly to the device in our MDM.

As an example, in jamf, you can easily get the computer details by udid via https://your-server.jamfcloud.com/JSSResource/computers/udid/{udid}.

<key>RemoteLogging</key>
<dict>
	<key>ServerAddress</key>
	<string>https://example.com/endpoint-path</string>
	<key>ServerType</key>
	<string>http_post</string>
</dict>

If this PR is accepted, I'll edit the wiki for this new feature.

@cla-assistant
Copy link

cla-assistant bot commented Aug 3, 2022

CLA assistant check
All committers have signed the CLA.

@mthielemann
Copy link
Contributor

Something similar be implemented in Privileges 2.0.0, which will be available later this year. We'll support posts to a https url and will provide data like this:

{
"user": "username",
"admin": true,
"expires": "2024-06-18T15:50+00Z",
"reason": "just for fun",
"uuid": "B4217748-7F6E-4FAF-B509-BC803E2EDFEE"
}

@3DJupp
Copy link

3DJupp commented Aug 29, 2024

Would be great not only to have Syslog, but also other possibilities (MQTT, LogAnalytics or other MDM-based log-collectors)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants