_stink_ | does anyone know if there's a way, in the linux filesystem, to have a node that is a transformed version of another node? | 17:37 |
---|---|---|
_stink_ | for example, i have a log file. i want to have a second file that when i read it, contains just entries from the original log file that meet some regex | 17:38 |
_stink_ | kind of like a filtered, live view of the original file | 17:39 |
_stink_ | i've searched around but found nothing useful yet | 17:39 |
_stink_ | or maybe there's a long running grep-style thing... | 17:41 |
cmaloney | I think you're looking for something like fuse for that | 17:58 |
cmaloney | you'd need to write something to do that kind of a view though | 17:58 |
jrwren | not at the filesystem level by default, but you could write a VFS that does it. | 18:33 |
jrwren | since your original question was re: logfiles, you can get rsyslog to do it for you. | 18:33 |
jrwren | but it isn't virtual at that point. | 18:34 |
Scary_Guy | I'm pretty sure there is a grep command that would write that into a file which you could make a cron job. Just can't call it too much or you might fill the partition. | 19:53 |
jrwren | _stink_: oh! a BG process to a socket! dammit... | 20:13 |
jrwren | !8ball should I write this for _stink_? | 20:13 |
jrwren | lol | 20:13 |
jrwren | hrm... it would be a little tricky on re-reads but _stink_ you said you like socat, right? :) | 20:43 |
jrwren | although, at that point, might as well make it an http api. :p | 20:44 |
_stink_ | thanks for the ideas cmaloney jrwren Scary_Guy ! | 20:58 |
_stink_ | the real application here is to simplify some already existing python code that reads a file and grabs the last line... i want it to only consider lines with a certain format | 20:59 |
_stink_ | so i was hoping to offload it to some ready baked tool | 21:00 |
_stink_ | but if it's a matter of writing a bg process or a VFS... i may as well just fix my python code :D | 21:00 |
jrwren | TIL: eatmydata and it is installed by default in ubuntu-server. I've no idea why. | 21:52 |
jrwren | anyone have ATT for data and think it is funny that they still use sbcglobal.com dns? | 22:09 |
Scary_Guy | No but I know others who have it. | 22:10 |
jrwren | second hop or so to AWS is 162-225-188-1.lightspeed.livnmi.sbcglobal.net for me, and it makes me laugh sometimes | 22:17 |
jrwren | ATT bought SBC in 2005 | 22:17 |
Scary_Guy | "If it ain't broke don't fix it" | 22:22 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!