FLOW-EXPIRE(1)

πŸ“¦ version 0.68.5.1, in fedora 43, fedora 44

✨ FLOW-EXPIRE(1) ✨

okay bestie, pull up a chair πŸ’– this is flow-expire, part of the flow-tools era, and she's here to Manage storage of flow file archives by expiring old data. yes that's the whole NAME, and yes it's giving "Marie Kondo but for netflow files" πŸŽ€


🌸 SYNOPSIS 🌸

flow-expire [ -h ]  [ -d debug_level ]  [ -e expire_count ]  [ -E
expire_size ]  -w workdir

like, the -w workdir is not optional, she needs to know WHERE to do the thing 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, the flow-expire utility removes the oldest flow files in a directory. and it decides who gets the boot based on either a count of files or space utilization β€” your pick, your rules πŸ’…

the directory gets recursively searched for flow files, because she's thorough like that. files that do not have a flow-tools signature will be ignored β€” she's not out here deleting your random stuff, no cap πŸ™ˆ

here's the iconic part: the internal timestamp is used, so backups or copies of the flow files that don't retain the original timestamp will not impact the operation of flow-expire. that's right, she reads the vibe inside the file, not whatever your filesystem clock is doing ✨

and where does this whole thing live? flow-expire is typically used to manage storage in a distributed environment where flows are collected on a different server than they are archived. classic main character setup, honestly πŸ‘‘


πŸ’– OPTIONS πŸ’–

  • -d debug_level β€” Enable debugging. she'll tell you what she's thinking, very group-chat of her πŸ—£οΈ
  • -e expire_count β€” Retain the maximum number of files so that the total file count is less than expire_count. so like, keep the newest ones until you're under the number πŸŽ€
  • -E expire_size β€” Retain the maximum number of files so that the total storage is less than expire_size. and the letters b, K, M, G can be used as multipliers, ie 16 Megabytes is 16M. use the multipliers bestie, don't make her read raw bytes 😭
  • -h β€” Display help. the "help me help you" button 🫢
  • -w workdir β€” Work in workdir. this one's mandatory, she has no default home 🏠

🌈 EXAMPLES 🌈

1. Remove the oldest flow files in /flows/krc4 until the total storage is less then 2 Gigabytes.

flow-expire -E2Gig -w /flows/krc4

2. Remove the oldest flow files in /flows/krc4 until the total number of files is less then 100.

flow-expire -e100 -w /flows/krc4

see? -E for space, -e for count, and workdir always tagging along at the end πŸ’«


πŸ’€ BUGS πŸ’€

  • Empty directories are not removed. yeah. she'll empty your folders but she will NOT take out the trash can itself. directories stay. periodt 😀

πŸ‘‘ AUTHOR πŸ‘‘

Mark Fullmer <maf@splintered.net> β€” the icon, the legend, the one who made this whole thing happen ⭐


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page bestie!! this version of the manual is from 26 Август 2010, and it's the FLOW-EXPIRE(1) page πŸŽ€ so go forth, expire those old flows, and keep your storage looking snatched βœ¨πŸ’…πŸ¦‹ no cap, you got this 🌸🫢

πŸ“¦ where this page comes from