3 ms·
I was just about to start looking into doing this myself and for the foreseeable future, I'll probably just use `dsh`... since I'm a cheapskate, have been tryin
by rubyn00bie 7y ago
I was just about to start looking into doing this myself and for the foreseeable future, I'll probably just use `dsh`... since I'm a cheapskate, have been trying to reduce my usage on cloud tools, and I just found out about it today:
https://www.netfort.gr.jp/~dancer/software/dsh.html.en https://www.netfort.gr.jp/~dancer/software/dsh.html.en
Once installed, change the default from rsh to ssh where it's installed e.g. `/usr/local/Cellar/dsh/0.25.10/etc/dsh.conf`
Then setup a group for machines, in this case I'm calling it "web"
> mkdir -p .dsh/group
> echo "some-domain-or-ip" >> .dsh/group/web
> echo "some-domain-or-ip-2" >> .dsh/group/web
Then fire off a command:
> dsh -M -g web -c -- tail -f /var/log/nginx/access.log
> some-domain-or-ip [... log message here ...]
> some-domain-or-ip-2 [... log message here ...]
The flags I used are:
-M "Show machine name"
-g "group to use"
-c run concurrently
That's about as easy as I can think of... /shrug while I like the idea of centralized logging services I haven't really found one I actually cared for... most just run rampant with noise, slow UIs, and strange query languages no one wants to learn. I guess I could start a machine up with `dsh` on it in my cluster and then write the output from dsh to a file... easy centralized logging on the cheap, ha!
- hacker_newz 7y agoThat hurt to read.
- bedlamite 7y agoMaybe give this a read, https://www.usenix.org/short-topics/building-logging-infrastructure https://www.usenix.org/short-topics/building-logging-infrast...
- edoceo 7y agoWow. Maybe just use syslog for this case? It's designed for centralized logging
- rubyn00bie 7y agoYes... Uhh.. `dsh` works with tailing syslog too. I don't know why it wouldn't? Sorry for my example not being general enough?