Total newcomer question but could not find with various google terms.
Want to run a command every 5 minutes on a Mac client to check whether someone is logged in on the console (don’t care about remote or Terminal).
Don’t need help with the command but need to know where to put it and what to surround it with. Telegraf.conf? Someone thought it would go in a file called 5.d since it would run every 5 minutes.
@daroloson not a Mac user so I don’t know which command to use but basically you want the exec input plugin to execute your command and a suited data_format setting to extract the information from the text.
If you can provide a (redacted) output of the raw command I might be able to help with parsing…