FLOW-EXPIRE(1)
β¨ 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 π
-ddebug_level β Enable debugging. she'll tell you what she's thinking, very group-chat of her π£οΈ-eexpire_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 π-Eexpire_size β Retain the maximum number of files so that the total storage is less than expire_size. and the lettersb,K,M,Gcan be used as multipliers, ie16 Megabytes is 16M. use the multipliers bestie, don't make her read raw bytes π-hβ Display help. the "help me help you" button π«Ά-wworkdir β 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 π₯
flow-tools(1)β go read the family lore, iykyk π
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
- fedora 43: flow-tools 0.68.5.1-45.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: flow-tools 0.68.5.1-45.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: flow-tools 0.68.5.1-46.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: flow-tools 0.68.5.1-46.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms