Any way to monitor web access of /admin and Dashboard?

116 views
Skip to first unread message

Jéan Roux

unread,
Apr 19, 2017, 5:56:56 PM4/19/17
to Node-RED
Not sure I have seen this documented, or anyone asking before.... sorry if covered already.

Can one, and which log file tracks access to /admin and /ui of node-red, and what uid's were used to access it & time of access?

Nick O'Leary

unread,
Apr 19, 2017, 6:00:08 PM4/19/17
to Node-RED Mailing List
Hi,

if by /admin you mean the editor, then you can enable the 'audit' log setting. That will log messages for each interaction with the admin api - it includes ip address of the request and, if adminAuth is enabled, the user name. Not sure what you mean by uid in this context.

There is no access log for the general http routes (ie HTTP In nodes and dashboard etc).


Nick

On 19 April 2017 at 22:56, Jéan Roux <je...@familyroux.com> wrote:
Not sure I have seen this documented, or anyone asking before.... sorry if covered already.

Can one, and which log file tracks access to /admin and /ui of node-red, and what uid's were used to access it & time of access?

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/6682d916-e5da-406c-9b83-47446aa9b305%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Julian Knight

unread,
Apr 20, 2017, 3:04:09 AM4/20/17
to Node-RED
Though you would be able to do something basic by using the middleware function in settings.


On Wednesday, 19 April 2017 23:00:08 UTC+1, Nick O'Leary wrote:
Hi,

if by /admin you mean the editor, then you can enable the 'audit' log setting. That will log messages for each interaction with the admin api - it includes ip address of the request and, if adminAuth is enabled, the user name. Not sure what you mean by uid in this context.

There is no access log for the general http routes (ie HTTP In nodes and dashboard etc).


Nick
On 19 April 2017 at 22:56, Jéan Roux <je...@familyroux.com> wrote:
Not sure I have seen this documented, or anyone asking before.... sorry if covered already.

Can one, and which log file tracks access to /admin and /ui of node-red, and what uid's were used to access it & time of access?

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

Jéan Roux

unread,
Apr 20, 2017, 3:17:23 PM4/20/17
to Node-RED
Thanks Nick, yes, sorry, by /admin I meant setting editor in httpAdminRoot. With uid, I meant setting access to dashboard via httpNodeAuth. My real requirement is to see when users hit the dashboard, so per your mail, this is not done in any api yet. 

Thanks Julian, will scratch around in middleware. 

Anybody else any ideas?

On Thursday, April 20, 2017 at 12:00:08 AM UTC+2, Nick O'Leary wrote:
Hi,

if by /admin you mean the editor, then you can enable the 'audit' log setting. That will log messages for each interaction with the admin api - it includes ip address of the request and, if adminAuth is enabled, the user name. Not sure what you mean by uid in this context.

There is no access log for the general http routes (ie HTTP In nodes and dashboard etc).


Nick
On 19 April 2017 at 22:56, Jéan Roux <je...@familyroux.com> wrote:
Not sure I have seen this documented, or anyone asking before.... sorry if covered already.

Can one, and which log file tracks access to /admin and /ui of node-red, and what uid's were used to access it & time of access?

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

Dave C-J

unread,
Apr 20, 2017, 3:27:28 PM4/20/17
to node...@googlegroups.com
if "just" the dashboard... you can use the ui_control node - that will report connections and disconnections and the socket ID and IP address... easy enough to add timestamp - but it won't have userid, and is only connect and disconnect - not every click.

Paul Reed

unread,
Apr 20, 2017, 6:14:12 PM4/20/17
to Node-RED
You could write the output to a file node to create a log...
```[{"id":"ef6ff7e1.611718","type":"ui_ui_control","z":"a444a9ff.e7a408","name":"ui control","x":90,"y":1906,"wires":[["c0180ecd.0537d"]]},{"id":"c0180ecd.0537d","type":"function","z":"a444a9ff.e7a408","name":"","func":"var ipa = msg.socketip;\nvar stat = msg.payload;\nmsg.payload = (ipa+\" - \"+stat);\nreturn msg;","outputs":1,"noerr":0,"x":242,"y":1906,"wires":[["e44e655b.0df508"]]},{"id":"e44e655b.0df508","type":"debug","z":"a444a9ff.e7a408","name":"","active":true,"console":"false","complete":"false","x":405,"y":1906,"wires":[]},{"id":"43f459e7.86eb88","type":"comment","z":"a444a9ff.e7a408","name":"UI IP access log","info":"","x":104,"y":1860,"wires":[]}]```

Jéan Roux

unread,
Apr 24, 2017, 1:55:24 PM4/24/17
to Node-RED
Thank you Paul !

Any other options than :

msg.socketip


to track further info? 
Reply all
Reply to author
Forward
0 new messages