-
polyex
jmnbtslsQE any idea how kevent would handle tailing 1000 files at once?
-
mason
polyex: Better than tailing logs would be a monitoring system.
-
polyex
mason how does that work other than tailing files itself?
-
mason
polyex: Doesn't matter. If you have a thousand sources of data, then a dashboard where you can whack the red thing to see more is way better than the vain hope you'll see one of the thousand logs showing an error with your eyeballs.
-
polyex
mason ya i get you but you're ignoring what i'm asking
-
mason
polyex: Absolutely not.
-
polyex
"doesn't matter"
-
polyex
genius
-
jmnbtslsQE
polyex: what do you mean about how it would handle? performance-wise?
-
polyex
jmnbtslsQE is kevent pretty efficient? like could you tail 1000 files without much system overhead or would it fall over?
-
polyex
like how heavy is it to 'watch' a file for changes under kevent
-
jmnbtslsQE
that number of files in and of itself would not be a problem at all, and you could probably use the simpler "legacy" interface (select) instead if you want
-
polyex
what about watching every file on the FS?
-
jmnbtslsQE
i don't have the expertise to speculate about that. i would guess that it would eventually become a problem depending on how much activity there is
-
mason
-
VimDiesel
Title: Chapter 19. Security Event Auditing | FreeBSD Documentation Portal
-
jmnbtslsQE
on a typical idle system without a major workload, it would not be a problem
-
polyex
damn that's cool
-
polyex
ty mason
-
mason
polyex: It's notionally equivalent to Linux. I've not driven a custom endpoint myself, so I can't speak to how trivial it'd be to set up.
-
mason
polyex: FWIW, I took your initial question as a desire to actually tail a large number of files.
-
polyex
ya
-
polyex
was just curious how efficient that is
-
mason
Tail itself doesn't appear to use kevent:
cgit.freebsd.org/src/tree/usr.bin/tail
-
VimDiesel
Title: tail « usr.bin - src - FreeBSD source tree
-
polyex
why not i wonder
-
V_PauAmma_V
Because "tail -f" came earlier?
-
dh|2
I see kqueue / kevent being used in the tail source.
-
jmnbtslsQE
yeah, the follow function in forward.c
-
mason
Oh, blah. I stopped at read.c once I saw it looping over getc.
-
mason
I only keep a source tree on my laptop which is off at the moment, so I didn't have grep handy.
-
polyex
i have a reproducible fluent bit seg fault bug i can't find a solution to. any help greatly appreciated:
termbin.com/ntly
-
llua
have you tried reporting to the fluent community?
-
polyex
i dont got github
-
llua
and the issue isn't important enough to make one?
-
polyex
EULA
-
llua
weird way of spelling yes
-
polyex
legal agreements to make accounts
-
voy4g3r2
polyex: you could always find a mailing list or a discord.
-
voy4g3r2
and the logging questions, and "tailing" multiple files.. there are services like prometheus that acould do a "dashboard" of outputs or you can have an aggregation of files to a cetnral place with tools like splunk.. but if your barrier to entry is EULA.. that may just be moot points
-
ketas
i have empty github
-
voy4g3r2
ketas: yes, the terms of service tie in the EULA if you have an account
-
ketas
well they do have terms, but why?
-
ketas
and terms can suck
-
voy4g3r2
well i can give a cynical answer
-
voy4g3r2
it is like why are there warns on palstic bags, please do not put over head as it may suffocate you
-
ketas
does github? :p
-
ketas
work like plastic bag
-
ketas
they have done weird shit indeed
-
voy4g3r2
well you could just install git and have your own repo
-
voy4g3r2
and an account is not requried to clone repos
-
ketas
unsure why i have account even
-
ketas
recently i moaned under some acme.sh bug
-
ketas
it's still there btw
-
ketas
acme.sh port will not work
-
ketas
i should notice maintainer maybe
-
ketas
i had to patch the tr-related code in :p
-
voy4g3r2
so then this goes to the situation, do you NOT have a github account and deal with the bug.. or you just suck it up and get the account to scratch an itch
-
ketas
i know the most nono thing github/ms did was to call everything people pushed there theirs and they feed that into their weird ai
-
ketas
but isn't anyone doing that
-
ketas
what's "free"
-
voy4g3r2
nothing stops any company from doing something similar with different platforms
-
voy4g3r2
it is a license that allows people to download, modify and use the code anyway they want..
-
ketas
now we have situation where almost all code is in github
-
ketas
kind of sad too
-
voy4g3r2
there is gitlab
-
SponiX
We should all just trust our code to Microsoft - right?
-
SponiX
what could possibly go wrong
-
ketas
first product that won't suck is vacuum cleaner
-
ketas
actually ms is funny company
-
ketas
has history and so on
-
V_PauAmma_V
"Nothing sucks like an Electrolux!"
-
ketas
they actually did that?
-
voy4g3r2
oh yeah
-
voy4g3r2
i think they were mentioned in an episode of madmen
-
voy4g3r2
the ads shown in madmen were real..
-
ketas
i hope they didn't use it for other products
-
voy4g3r2
a real good podcast about microsoft history:
acquired.fm/episodes/microsoft
-
VimDiesel
Title: Microsoft: The Complete History and Strategy
-
ketas
that is 4.5h long!
-
voy4g3r2
yeah
-
voy4g3r2
they make some real good episodes about company history.. they do awesome research on it
-
voy4g3r2
and sometimes people.. they did an epsidoe just on taylor swift and how she became the star she is and the business around her. fascinating
-
voy4g3r2
but i'll stop, this is not hte focus on this channel and i need to write up a presentation for work
-
ketas
indeed good
-
ketas
but i think those will work for some trip of other work
-
ketas
due extremely long
-
polyex
i have a reproducible fluent bit seg fault bug i can't find a solution to. any help greatly appreciated:
termbin.com/ntly
-
mason
polyex: Might be worth grabbing a ktrace to see where in the code it's choking.
-
Bebef
Hi everyone
-
Bebef
I habe a routing issue. net.inet.ip.forwarding=1 and routes are correct, pf is off. Still, it seems that no packets are forwarded, but silently dropped. Any idea how I could debug this (i.e., get the deceision why packets were dropped)?
-
hsnovel
"Ich habe" tell me you are german without telling me you are german
-
hsnovel
oh there wasn't ich either. I got too carried away when I read "habe"
-
Bebef
b and v ALSO are right next to each other on the keyboard. </hint>
-
hsnovel
oh yeah, ur right
-
hsnovel
fat fingering huh
-
Bebef
Happens, especially when you have to type on a notebook keyboard rather than a reasonable one ;)
-
hsnovel
yeah it sucks
-
Bebef
Okay, OPNsense seems to be very broken. I just reverted the config to DHCP and everything works (although it doesn't do anything different). Will take this to OPNsense then.
-
hsnovel
I am no OPNsense expert or anything but seems like you have to configure static ip address (which I assume was the thing you were using since you said that you switched to DHCP) Can you check this link? docs.opnsense.org/manual/dhcp.html
-
hsnovel
they have a section on setting static ip. Seems like you have to change a configuration on somewhere. I am not sure if you have done it or not but if you didn't you might want to give it a try
-
Bebef
Thanks for the pointer. However, that's DHCP server. I configured the interface from DHCP to static.
-
Bebef
Regardless, it works now and I won't touch it. Won't be my responsibility for long anyway ;)
-
hsnovel
haha lol
-
hsnovel
I'm glad than ;)
-
crest
looks like the FreeBSD 14.0 (amd64) PkgBase mirrors are all broken right now
-
crest
the FreeBSD-acct package is missing
-
crest
(at least that's the first one that pkg install -r base stumbles over
-
crest
)
-
concussious
im trying to "/usr/bin/time -h make -j4 buildworld buildkernel kernconf=JIBSD". everything seemingly builds fine, but the output says "GENERIC completed"
-
concussious
I have placed this kernconf in sys/amd64/conf/JIBSD, and i used "ident JIBSD" and "makeoptions KERNEL=JIBSD" in there
-
concussious
sorry for the stupid question, but how do i figure out what's going on here?
-
jmnbtslsQE
concussious: i think the problem is KERNCONF instead of kernconf
-
jmnbtslsQE
it should say toward the top of the output which one it's using
-
lastshell
Hi, I'
-
lastshell
Hi, I'm fairly new to bsd world, I have a freebsd currently at home, trying to setup permanent ip alias I followed this and try with and without inet prefix but not able to make it work, my first ip is using DHCP is that the problem ?
-
lastshell
-
VimDiesel
Title: unixwerk: Setting IP Aliases under BSD
-
lastshell
it works fine the manual way but I wanted to have it in /etc/rc.conf
-
concussious
jmnbtslsQE: that's exactly what it was. thank you so much.
-
concussious
-
VimDiesel
Title: Chapter 7. Network | FreeBSD Documentation Portal
-
lastshell
thank you concussious
-
crest
lastshell: the manual page explaining it is a bit "hidden" under the name rc.conf
-
crest
run `man rc.conf` and search for _alias
-
crest
or look it up online under
man.freebsd.org/rc.conf
-
VimDiesel
Title: rc.conf
-
lastshell
crest I have this in /etc/rc.conf
bsd.to/5jES but when I restar the netwotk the 2nd virtual ip is not showing
-
VimDiesel
Title: dpaste/5jES (Plain Text)
-
lastshell
do I need to put both ips static ?
-
crest
combining static aliases and dhcp is a really bad idea even if it's technically possible
-
crest
i would recommend using either all static addresses or all dynamic addresses per interface
-
crest
at least for stateful things like dhcp
-
crest
i would recommend setting the mask to all ones for the alias ips
-
crest
e.g. ifconfig_re0_alias0="inet 192.168.0.21/32" # you don't have to use the old address + hex mask notation
-
crest
the commands to apply fully will remove your default route so be careful applying them to remote systems
-
crest
or at least wrap them like this: nohup sh -c 'service netif restart re0; service routing restart'
-
lastshell
-
VimDiesel
Title: dpaste/wh4D (Plain Text)
-
crest
is the address already assigned?
-
crest
try route -n get -inet 192.168.0.21
-
crest
or just ifconfig | less and search for the address
-
crest
are you on the same link as the system in question or have some form of out of band access (just reaching over to the old laptop used as lab machine, ipmi serial over lan)?
-
lastshell
I had to reboo the router I have fix mac address ip for the freebsd ethernet
-
CrtxReavr
lastshell, 'arp -d' is a thing too.
-
lastshell
so this worked for me now I have two IPs on my lazy freebsd dns (using dnsmasq)
bsd.to/EEaV
-
VimDiesel
Title: dpaste/EEaV (Plain Text)
-
lastshell
thank you all
-
entikan
can I use the Makefile from a port to build a project on github? if so, how?
-
entikan
from github*
-
entikan
I want to try the latest state
-
jauntyd
-
VimDiesel
Title: Chapter 5. Configuring the Makefile | FreeBSD Documentation Portal
-
entikan
thanks
-
debdrup
lists.freebsd.org/archives/freebsd-hackers/2024-April/003195.html (and indeed the whole thread) makes for very interesting reading.
-
VimDiesel
Title: Re: Stressing malloc(9)
-
enyc
< yamada> anyone running freebsd on the raspberry pi 5 ?
-
enyc
could you have freenas/truenas on a rpi5 with sata expander ? etc heh
-
polyex
what's the best intrusion detection system for freebsd? basically to know the instant a box has been hacked
-
yamada
polyex, ossec !?
-
polyex
nice ty. how do you like it?
-
debdrup
polyex: freebsd has a whole security event auditing framework cf.
docs.freebsd.org/en/books/handbook/book/#audit - which can be integrated with dtrace using audit_dtrace(4)
-
VimDiesel
Title: FreeBSD Handbook | FreeBSD Documentation Portal
-
polyex
debdrup does it do everything ossec does or should i run both or?
-
debdrup
it does part of what ossec does, with other parts of freebsd (like the mac framework, veriexec, and other things) doing other parts
-
debdrup
if you've already got ossec on infrastructure and you're deploying freebsd, stick with that - if you're deploying from first principles, you're free to pick whichever looks mroe promising
-
polyex
ya greenfield. i'll start with freebsd native tech first ty!!
-
debdrup
freebsds own systems has the advantage of tight integration in freebsd
-
polyex
ya that's what i want
-
polyex
jonah kowall come in the channel?
-
polyex
i wanna build a go app but i don't know how go works.
github.com/open-telemetry/opentelemetry-collector. anyone know pls?