/srv/irclogs.ubuntu.com/2021/11/21/#ubuntu-us-mi.txt

_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 regex17:38
_stink_kind of like a filtered, live view of the original file17:39
_stink_i've searched around but found nothing useful yet17:39
_stink_or maybe there's a long running grep-style thing...17:41
cmaloneyI think you're looking for something like fuse for that17:58
cmaloneyyou'd need to write something to do that kind of a view though17:58
jrwrennot at the filesystem level by default, but you could write a VFS that does it.18:33
jrwrensince your original question was re: logfiles, you can get rsyslog to do it for you.18:33
jrwrenbut it isn't virtual at that point.18:34
Scary_GuyI'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
jrwrenlol20:13
jrwrenhrm... it would be a little tricky on re-reads but _stink_ you said you like socat, right? :)20:43
jrwrenalthough, at that point, might as well make it an http api. :p20: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 format20:59
_stink_so i was hoping to offload it to some ready baked tool21: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 :D21:00
jrwrenTIL: eatmydata and it is installed by default in ubuntu-server. I've no idea why.21:52
jrwrenanyone have ATT for data and think it is funny that they still use sbcglobal.com dns?22:09
Scary_GuyNo but I know others who have it.22:10
jrwrensecond hop or so to AWS is 162-225-188-1.lightspeed.livnmi.sbcglobal.net for me, and it makes me laugh sometimes22:17
jrwrenATT bought SBC in 200522: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!