Messag...ileTail(3pm)
π Message::Passing::Input::FileTail π
okay bestie, so this is a Perl module from the Message::Passing family β it's the file tailing input one, i.e. you point it at a file and it goes π at the end of it forever. It's Message::Passing::Input::FileTail, and it lives in the 3pm section of the manual (that's the Perl module docs section, iykyk). Let's get into it fr fr π¦
β¨ SYNOPSIS β¨
message-pass --input FileTail --input_options '{"filename": "/var/log/foo.log"} --output STDOUT
{"filename":"/var/log/foo.log","message":"example line","hostname":"www.example.com","epochtime":"1346705476","type":"log_line"}
so the first line is you calling message-pass, setting --input to FileTail, passing your --input_options as JSON (with the filename key, here /var/log/foo.log), and dumping it all out to --output STDOUT. And the second line is what a message looks like when it comes out the other side β a whole little hash of data with filename, message, hostname, epochtime and type set to log_line. cute right? πΈ
π DESCRIPTION π
no cap, the DESCRIPTION section is literally empty. the attributes are where all the actual tea is, so scroll down π
π ATTRIBUTES π
filename
the filename of the file you wanna tail. that's it, that's the whole vibe. give it a path, it watches the end of that file π«Ά
raw
if the file data should be output raw β as in, just a line, plain and simple. normally though, lines get output as a hash of data, with all those fields you saw in the SYNOPSIS (filename, message, hostname, epochtime, type). so set raw when you want the bare line and not the whole lil hash situation β¨
π SEE ALSO π
Message::Passingβ the parent vibe, go read that one too bestie
π SPONSORSHIP π
this module literally exists because of the wonderful people at Suretec Systems Ltd. <http://www.suretecsystems.com/> β they sponsored its development for their VoIP division called SureVoIP <http://www.surevoip.co.uk/>, for use with the SureVoIP API β <http://www.surevoip.co.uk/support/wiki/api_documentation>. shoutout to them, absolute icons π«Άβ¨
π AUTHOR, COPYRIGHT AND LICENSE π
see Message::Passing. that's the whole section, they said go look over there π (affectionate)
real talk: this page is short but every detail counts, so don't sleep onfilenameandrawβ those are your only two knobs π₯
and that's the whole page bestie!! π this one came from perl v5.32.1, dated 2021-11-09, and it's part of the User Contributed Perl Documentation β so like, it's giving community-coded, and we love that for it π mwah, go tail some files π¦π
π¦ where this page comes from
- debian bookworm: libmessage-passing-perl 0.117-1 Β· LGPL-2.1-only
- debian trixie: libmessage-passing-perl 0.117-1 Β· LGPL-2.1-only
- ubuntu jammy: libmessage-passing-perl 0.117-1 Β· LGPL-2.1-only
- ubuntu noble: libmessage-passing-perl 0.117-1 Β· LGPL-2.1-only
- ubuntu resolute: libmessage-passing-perl 0.117-1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms