# \[APP\]\[Pro\] Simple (Sys) LOG - Use this app for Simple (Sys) Logging

**URL:** <https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533>\
**Category:** Apps\
**Tags:** app, tools, homey-pro, logging, syslog\
**Created:** [March 11, 2023, 8:40pm UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533 "2023-03-11T20:40:00Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 13, 2023, 2:36pm UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/21 "2023-03-13T14:36:24Z")

</div>

### Log can now also be retrieved in flows as CSV (base64), JSON (base64) and Excel (base64)

(in test)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/9/89e19065f4d56af41d89bc6abf5feec3ba2008ea.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 13, 2023, 3:27pm UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/22 "2023-03-13T15:27:40Z")

</div>

Nice stuff again, Arie

The export to FTP is super neat.

v1.0.0  
Severity changes don’t seem to be adjusted yet, they’re all ‘informational’ in the log.  
 ![Screenshot from 2023-03-13 16-25-50](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/6/d6e575b6cc00281d1cbfefb907b8a07b2040e5ea.png)

![Screenshot from 2023-03-13 16-33-22](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/5/051569a8d5fc186f506b19c66aae444aaa1ec8c1.png)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 13, 2023, 5:27pm UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/23 "2023-03-13T17:27:44Z")

</div>

> [@Peter\_Kawa](#):
>
> Severity changes don’t seem to be adjusted yet, they’re all ‘informational’ in the log.

Yeah Peter, that card doesnt do anything, it’s just a place where you can configure the Automater per flow.  
Run the script, and this flow will be updated with the values you have picked in the Automater card in this flow.

The values in the top of the script is just to fill the Automater the first time.  
But changing values in the automater doesn’t do anything directly, you need to run the script again.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 13, 2023, 5:35pm UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/24 "2023-03-13T17:35:08Z")

</div>

Ah okay, I didn’t get it right then hehe.  
About setting it in the script, is that this line you mean?

```auto
const errorSeverity = 3, triggerSeverity = 6, conditionSeverity = 6, actionSeverity = 6, facility = 16;

```

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 13, 2023, 6:15pm UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/25 "2023-03-13T18:15:59Z")

</div>

> [@Peter\_Kawa](#):
>
> `const errorSeverity = 3, triggerSeverity = 6, conditionSeverity = 6, actionSeverity = 6, facility = 16;`

Yeah, those are the default.  
When a flow doesn’t have a Automater card yet, it will create on and fill it with these values.

If you change the values on the Automater in a flow (and have update:Yes) and then run the script, it will use the values of the Automater.

This way, you have control over each flow, if you want.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 14, 2023, 9:50am UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/26 "2023-03-14T09:50:16Z")

</div>

So much fun with this log app. It’s tempting to not run the script for all flows at once 🤪

Is it an idea to mention the severity levels as a comment?  
Like

```auto
const errorSeverity = 3, triggerSeverity = 6, conditionSeverity = 6, actionSeverity = 6, facility = 16;
// Emergency=0 Alert=1 Critical=2 Error=3 Warning=4 Notice=5 Informational=6 Debug=7

```

And just FYI, I noticed this memory glitch, but I installed a few app updates at that time and that might be related:

 ![Screenshot from 2023-03-14 10-41-31](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/d/fd9f0f3bd653036727fdf88a8e0b6d29b3b8743b.png)

---

<div class="post-metadata">

**Author:** ![ChrisG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrisg/32/8825_2.png) [@ChrisG](https://community.homey.app/u/ChrisG)\
**Post date:** [March 14, 2023, 9:54am UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/27 "2023-03-14T09:54:07Z")

</div>

Hi Arie,

Now I finally got around to testing the syslog interface.

I noticed the following:

- The transport (udp,tcp) can be selected in the settings, although you implemented this.

- The bigger problem is that when I send a syslog message (via flow), I get the following error message from my syslog server.

```auto
[2023-03-14T09:33:43.989689] Syslog connection accepted; fd='17', client='AF_INET(192.168.xx.xx:59212)', local='AF_INET(0.0.0.0:601)'
[2023-03-14T09:33:43.990430] Invalid frame header; header=''
[2023-03-14T09:33:43.990484] Syslog connection closed; fd='17', client='AF_INET(192.168.xx.xx:59212)', local='AF_INET(0.0.0.0:601)'

```

Chris

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 14, 2023, 9:55am UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/28 "2023-03-14T09:55:50Z")

</div>

Please send me a diagnostic?

What kind of syslog are you using to connect with?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 14, 2023, 9:56am UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/29 "2023-03-14T09:56:21Z")

</div>

> [@ChrisG](#):
>
> The transport (udp,tcp) can be selected in the settings, although you implemented this.

Are you missing a word somewhere in this sentence?

---

<div class="post-metadata">

**Author:** ![ChrisG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrisg/32/8825_2.png) [@ChrisG](https://community.homey.app/u/ChrisG)\
**Post date:** [March 14, 2023, 9:59am UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/30 "2023-03-14T09:59:46Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> Are you missing a word somewhere in this sentence?

YEP !🤦!

The transport (udp,tcp) **cannot** be selected in the settings…

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 14, 2023, 10:15am UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/31 "2023-03-14T10:15:09Z")

</div>

Okay @ChrisG , update SL to [test](https://homey.app/a/nl.nielsdeklerk.log/test/) (and BLL to test i think, depends on the version).

I have fixed multiple things, like transport mode is back and is working correctly for udp and tcp.  
(the app doesn’t need a restart on setting change, it will re-initialize automaticly after changes).

Because there were multiple issues, can you recheck with the test version and see how things go?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 14, 2023, 10:53am UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/32 "2023-03-14T10:53:07Z")

</div>

Hey Arie,

v2.9.38  
FYI, the card “Get the whole log as xlsx(base64)” errors:

 ![Screenshot from 2023-03-14 11-45-30](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/b/7b12b9cfa8bef0b620c521602713ecf8ce2c799f.png)

- Yesterday the card worked OK
- The csv version of this card still works OK

Q: Is there a way to change ‘_base64_’ into a less technical description? I had to look it up, and I’m still confused what it means 😅 🤣

Thanks!

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 14, 2023, 11:11am UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/33 "2023-03-14T11:11:16Z")

</div>

> [@Peter\_Kawa](#):
>
> FYI, the card “Get the whole log as xlsx(base64)” errors:

Have you updated BLL to the current Test version?  
I just update BLL, to make sure there at least are no errors when the settings are undefined.

But the fix is in BLL (test).

> [@Peter\_Kawa](#):
>
> Is there a way to change ‘_base64_’ into a less technical description? I had to look it up, and I’m still confused what it means 😅 🤣

Well, i am not sure how.

Files like Excel are binary files, you cannot transport them through tokens.  
But any file can be converted into a text (base64), which contains the whole file, just a little bigger and as text/string.  
That way, we can pass files along in Homey 🙂  
Since, currently, only Images are supported.

But about the base64, perhaps there needs to be a place where it’s explained?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 14, 2023, 11:17am UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/34 "2023-03-14T11:17:37Z")

</div>

> [@Peter\_Kawa](#):
>
> It’s tempting to not run the script for all flows at once 🤪

Better not, i think that would create a memory issue.

SL is not yet ready, because indeed, memory builds up.  
SL on my HP2019 is currently at 70MB because of reading the complete log.  
It doesn’t like that with 5000 records yet.

Working on it before any release ofc.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 14, 2023, 11:18am UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/35 "2023-03-14T11:18:40Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> Have you updated BLL to the current Test version?

That was the solution Arie, thx!

> [@Arie\_J\_Godschalk](#):
>
> Better not, i think that would create a memory issue.

No I’ll wait for your green light on that 😉

> [@Arie\_J\_Godschalk](#):
>
> converted into a text (base64), which contains the whole file, just a little bigger and as text/string.

Aaaaah, rings a bell, and while you mentionded ‘images’, I just thought of the fact I have some pics as base64 text /string in homeassistant. Is a TEF also base64?  
I still have no clue how to describe ‘base64’ yet 😉  
Maybe in the flowcard tooltip. Like ‘base64 is a file converted to a text/string for easy export to anywhere’?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 14, 2023, 2:27pm UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/36 "2023-03-14T14:27:21Z")

</div>

A test with one of my biggest flows went well 😉

 ![Screenshot from 2023-03-14 14-47-05](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/7/1750cbc8270509c2cd4899fa525d2c83518c551a.png)  
 ![Screenshot from 2023-03-14 14-47-54](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/c/4ce6768250b2cfc8be17a21b55b1e849b5050eb6.png)  
 ![Screenshot from 2023-03-14 14-48-39](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/3/53c282c5582797117c66c809a4948ec912c15815.png)

 ![Screenshot from 2023-03-14 15-11-15](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/4/243239682a6114a834d151484876533be993897d.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 14, 2023, 2:49pm UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/37 "2023-03-14T14:49:02Z")

</div>

FYI Currently the export is null, I tried every format, latest apps, apps restarted  
 ![Screenshot from 2023-03-14 15-45-05](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/e/8ebee3c44c4a7818c2c5493dd6f0b77c572a8f04.png)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 14, 2023, 4:06pm UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/38 "2023-03-14T16:06:01Z")

</div>

Send me a diag?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 14, 2023, 4:07pm UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/39 "2023-03-14T16:07:22Z")

</div>

And show me a printscreen of the BLL app settings–\>Exports?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 14, 2023, 4:14pm UTC](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533/40 "2023-03-14T16:14:17Z")

</div>

Here you go:  
26ed13fd-2a50-427d-b428-01339b99c0ca

 ![Screenshot_20230314-171333_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3bb693abee69b415e31b662b7e0fa8bf604e97aa.jpeg)

Oh, and just fyi, in SSL settings, the log is present and up-to-date.

[Previous page](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533.md?page=1)

[Next page](https://community.homey.app/t/app-pro-simple-sys-log-use-this-app-for-simple-sys-logging/77533.md?page=3)
