File: flow-expire.html

package info (click to toggle)
flow-tools 1%3A0.68-12.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 5,136 kB
  • ctags: 5,259
  • sloc: ansic: 43,197; sh: 1,674; perl: 661; python: 629; yacc: 303; makefile: 208; lex: 49
file content (268 lines) | stat: -rw-r--r-- 3,522 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<HTML
><HEAD
><TITLE
>flow-expire</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.71
"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><H1
><A
NAME="AEN1"
><SPAN
CLASS="APPLICATION"
>flow-expire</SPAN
></A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6"
></A
><H2
>Name</H2
><SPAN
CLASS="APPLICATION"
>flow-expire</SPAN
>&nbsp;--&nbsp;Manage storage of flow file archives by expiring old data.</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN10"
></A
><H2
>Synopsis</H2
><P
><B
CLASS="COMMAND"
>flow-expire</B
>  [-h] [-d<TT
CLASS="REPLACEABLE"
><I
> debug_level</I
></TT
>] [-e<TT
CLASS="REPLACEABLE"
><I
> expire_count</I
></TT
>] [-E<TT
CLASS="REPLACEABLE"
><I
> expire_size</I
></TT
>] {-w<TT
CLASS="REPLACEABLE"
><I
> workdir</I
></TT
>}</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN22"
></A
><H2
>DESCRIPTION</H2
><P
>The <B
CLASS="COMMAND"
>flow-expire</B
> utility will remove the oldest flow files
in a directory based on either a count of files or space utilization.  The
directory is recursively searched for flow files.  Files that do not have a
flow-tools signature will be ignored.  The internal timestamp is used so
backups or copies of the flow files that do not retain the original
timestamp will not impact the operation of <B
CLASS="COMMAND"
>flow-expire</B
>. 
<B
CLASS="COMMAND"
>flow-expire</B
> is typically used to manage storage in
a distributed environment where flows are collected on a different
server than they are archived.</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN28"
></A
><H2
>OPTIONS</H2
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>-d<TT
CLASS="REPLACEABLE"
><I
> debug_level</I
></TT
></DT
><DD
><P
>Enable debugging.</P
></DD
><DT
>-e<TT
CLASS="REPLACEABLE"
><I
> expire_count</I
></TT
></DT
><DD
><P
>Retain the maximum number of files so that the total file count is
less than <TT
CLASS="REPLACEABLE"
><I
>expire_count</I
></TT
>.</P
></DD
><DT
>-E<TT
CLASS="REPLACEABLE"
><I
> expire_size</I
></TT
></DT
><DD
><P
>Retain the maximum number of files so that the total storage is less
than <TT
CLASS="REPLACEABLE"
><I
>expire_size</I
></TT
>.  The letters b,K,M,G can
be used as multipliers, ie 16 Megabytes is 16M.</P
></DD
><DT
>-h</DT
><DD
><P
>Display help.</P
></DD
><DT
>-w<TT
CLASS="REPLACEABLE"
><I
> workdir</I
></TT
></DT
><DD
><P
>Work in <TT
CLASS="FILENAME"
>workdir</TT
>.</P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN58"
></A
><H2
>EXAMPLES</H2
><DIV
CLASS="INFORMALEXAMPLE"
><A
NAME="AEN60"
></A
><P
></P
><P
>Remove the oldest flow files in <TT
CLASS="FILENAME"
>/flows/krc4</TT
> until
the total storage is less then 2 Gigabytes.</P
><P
>  <B
CLASS="COMMAND"
>flow-expire -E2Gig -w /flows/krc4</B
></P
><P
></P
></DIV
><DIV
CLASS="INFORMALEXAMPLE"
><A
NAME="AEN65"
></A
><P
></P
><P
>Remove the oldest flow files in <TT
CLASS="FILENAME"
>/flows/krc4</TT
> until
the total number of files is less then 100.</P
><P
>  <B
CLASS="COMMAND"
>flow-expire -e100 -w /flows/krc4</B
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN70"
></A
><H2
>BUGS</H2
><P
>Empty directories are not removed.</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN73"
></A
><H2
>AUTHOR</H2
><P
>Mark Fullmer
<TT
CLASS="EMAIL"
>&#60;<A
HREF="mailto:maf@splintered.net"
>maf@splintered.net</A
>&#62;</TT
></P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN80"
></A
><H2
>SEE ALSO</H2
><P
><SPAN
CLASS="APPLICATION"
>flow-tools</SPAN
>(1)</P
></DIV
></BODY
></HTML
>