# Access control to NodeRed

**URL:** <https://discourse.nodered.org/t/access-control-to-nodered/41218>\
**Category:** General\
**Created:** [18 February 2021 08:38 UTC](https://discourse.nodered.org/t/access-control-to-nodered/41218 "2021-02-18T08:38:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariulin](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@mariulin](https://discourse.nodered.org/u/mariulin)\
**Post date:** [18 February 2021 08:38 UTC](https://discourse.nodered.org/t/access-control-to-nodered/41218/1 "2021-02-18T08:38:11Z")

</div>

Hi everybody. I have this kind of question. If I set NodeRed that is using HTTPS and protect access whith a password, is possible to discover failed attempt to enter in?

Now I have all behind a VPN, but is a little bit complex to use especially with a phone. With a direct access is surely more simple but also less secure.

Thank you

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [18 February 2021 23:17 UTC](https://discourse.nodered.org/t/access-control-to-nodered/41218/2 "2021-02-18T23:17:26Z")

</div>

I think that you will find an entry in the Node-RED log if a login fails - though I've not actually tried it.

Assuming it does, you could use a log parser such as fail2ban to automate things.

With these kinds of issues, I personally find it generally better to use a more specific tool for authentication rather than the built-in Node-RED tools. Such as putting Node-RED behind a reverse proxy like NGINX or Caddy that will take care of the TLS and authentication for you. They will have far more logging and pre-built alerting capabilities (or at least 3rd party tools) since they are so widely used.

---

<div class="post-metadata">

**Author:** ![mariulin](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@mariulin](https://discourse.nodered.org/u/mariulin)\
**Post date:** [19 February 2021 15:06 UTC](https://discourse.nodered.org/t/access-control-to-nodered/41218/3 "2021-02-19T15:06:19Z")

</div>

Thank you for your answer. I will try to do some experiment...  
In the specific, where is the "Node-RED log" file?

Thank you  
Bye

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 February 2021 15:37 UTC](https://discourse.nodered.org/t/access-control-to-nodered/41218/4 "2021-02-19T15:37:04Z")

</div>

Depends how you are running it and on what OS.

Assuming that you are using some form of Linux and have a standard installation, you will probably find it by doing something like `journalctl -u node-red`.

Note that one of the advantages of `systemd` and its journal is that you can easily output the logs in machine readable formats.

If linking into other apps to grep the log, you will find the node-red entries buried in `/var/log/syslog`.

---

<div class="post-metadata">

**Author:** ![mariulin](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@mariulin](https://discourse.nodered.org/u/mariulin)\
**Post date:** [19 February 2021 15:52 UTC](https://discourse.nodered.org/t/access-control-to-nodered/41218/5 "2021-02-19T15:52:34Z")

</div>

Yes sorry... I took it for granted that I'm using Linux. Never use Windows if not for solitaire :-))

Ok. Then the system logs... I thought that NodeRed had its own log file.

Thank you for all.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 February 2021 16:06 UTC](https://discourse.nodered.org/t/access-control-to-nodered/41218/6 "2021-02-19T16:06:29Z")

</div>

> [@mariulin](#):
>
> Never use Windows if not for solitaire

Haha, minesweeper surely 😁

Windows = Desktop, Linux = Server. Mac = Oh lordy why? 🤣

> [@mariulin](#):
>
> I thought that NodeRed had its own log file

Again, this is the benefit of systemd. It journals logs to memory and outputs to syslog by default. But you can configure it anyway you like. Rather than trying to grep syslog, you can simply use the journalctl command which is a lot better and can give you a single or multiple logs.

I also use it for logging my own CRON driven batch scripts. Nice.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 February 2021 12:05 UTC](https://discourse.nodered.org/t/access-control-to-nodered/41218/7 "2021-02-20T12:05:23Z")

</div>

The command `node-red-log` will tail the log for you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 April 2021 12:05 UTC](https://discourse.nodered.org/t/access-control-to-nodered/41218/8 "2021-04-21T12:05:47Z")

</div>

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