Remote server

26 views
Skip to first unread message

junior tehe

unread,
Jan 2, 2019, 5:07:10 PM1/2/19
to mtail-users
Hello Everybody,
I just want to know if is it possible to use mtail command for remote servers. i mean how to scrap metrics log (request code) for a remote server. If yes, how can i do it?
I need your help.

Jamie Wilkinson

unread,
Jan 2, 2019, 5:19:52 PM1/2/19
to junior tehe, mtail-users
mtail can only read files and named pipes.  If you wanted, you could try to make a named pipe receive from a TCP socket using something like netcat or socat; if you wanted you could nfs mount the remote filesystem to make the files visble to mtail.

However I don't recommend either -- the best way to get logs from a remote system to mtail is to use a log transport like rsyslog and then write them to a named pipe for mtail to consume.

--
You received this message because you are subscribed to the Google Groups "mtail-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtail-users...@googlegroups.com.
To post to this group, send email to mtail...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mtail-users/f2b622e8-a3b6-4f4d-8908-a585f604b628%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

junior tehe

unread,
Jan 3, 2019, 3:17:36 PM1/3/19
to Jamie Wilkinson, mtail-users
I will try this option. thanks!
Reply all
Reply to author
Forward
0 new messages