# Any chance we can add the ability to send syslog messages?

**URL:** https://klipper.discourse.group/t/any-chance-we-can-add-the-ability-to-send-syslog-messages/22960
**Category:** General Discussion
**Created:** [April 12, 2025, 1:23am UTC](https://klipper.discourse.group/t/any-chance-we-can-add-the-ability-to-send-syslog-messages/22960 "2025-04-12T01:23:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jepalmer](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@jepalmer](https://klipper.discourse.group/u/jepalmer)
#### Post date: [April 12, 2025, 1:23am UTC](https://klipper.discourse.group/t/any-chance-we-can-add-the-ability-to-send-syslog-messages/22960/1 "2025-04-12T01:23:04Z")

</div>

### Basic Information:

Printer Model: SV08  
 MCU / Printerboard: Sovol SV08 Board  
 Host / SBC  
 klippy.log

_Fill out above information and_ **_in all cases attach your_ `klippy.log` _file_** (use zip to compress it, if too big). _Pasting your_ `printer.cfg` _is **not** needed_  
_ **Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there** _

### Describe your issue:

…  
Is is possible to add a command to send a syslog message. I.E. SendLog(“Sample”). I want to build a stand alone server that reacts to the syslog messages.

---

<div class="post-metadata">

### Author: ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)
#### Post date: [April 12, 2025, 6:43am UTC](https://klipper.discourse.group/t/any-chance-we-can-add-the-ability-to-send-syslog-messages/22960/2 "2025-04-12T06:43:33Z")

</div>

You can do this on the Linux level if you absolutely need it. Have a look at [rsyslog](https://www.rsyslog.com/) and, in particular, its [Text File Input Module](https://www.rsyslog.com/doc/configuration/modules/imfile.html).

---

<div class="post-metadata">

### Author: ![jepalmer](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@jepalmer](https://klipper.discourse.group/u/jepalmer)
#### Post date: [April 12, 2025, 3:49pm UTC](https://klipper.discourse.group/t/any-chance-we-can-add-the-ability-to-send-syslog-messages/22960/3 "2025-04-12T15:49:58Z")

</div>

I am well aware of rsyslog. No. What I am asking for is the ability to generate syslogs. I.E. I want to have a macro that sends syslogs. SendLog(“Print is complete”), SendLog(“Filament Runout”), SendLog(“Changing Filament”), or what ever other messages I want to send. Basically I read that the creator doesn’t want to allow Klipper to execute commands, this will give me a way to send specific conditions to a unix host that can preform actions based on events happening. Either sending a message or turning on light or something to get my attention.

---

<div class="post-metadata">

### Author: ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)
#### Post date: [April 12, 2025, 5:51pm UTC](https://klipper.discourse.group/t/any-chance-we-can-add-the-ability-to-send-syslog-messages/22960/4 "2025-04-12T17:51:23Z")

</div>

Although there is no built-in way to send commands, you can add [kiauh/resources/gcode\_shell\_command.py at master · dw-0/kiauh · GitHub](https://github.com/dw-0/kiauh/blob/master/resources/gcode_shell_command.py). This is a well-proven extension but carries the risk of enabling users to perform unintended actions or potentially creating security concerns.

Then there are other ways to interact with such states, for example, via Moonraker. For an example, see the [MQTT](https://moonraker.readthedocs.io/en/latest/configuration/#mqtt) API.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)
#### Post date: [June 11, 2025, 5:52pm UTC](https://klipper.discourse.group/t/any-chance-we-can-add-the-ability-to-send-syslog-messages/22960/5 "2025-06-11T17:52:08Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
