gdp / apps / gdp-log-view.8 @ master
History | View | Annotate | Download (2.71 KB)
1 | 809d6cad | Eric Allman | .Dd October 1, 2017 |
---|---|---|---|
2 | be19c14d | Eric Allman | .Dt GDP-LOG-VIEW 8 |
3 | 809d6cad | Eric Allman | .Os Swarm-GDP |
4 | . |
||
5 | .Sh NAME |
||
6 | be19c14d | Eric Allman | .Nm gdp-log-view |
7 | 809d6cad | Eric Allman | .Nd view information about an on-disk GDP log |
8 | . |
||
9 | .Sh SYNOPSIS |
||
10 | .Nm |
||
11 | .Op Fl d Ar log-root-dir |
||
12 | .Op Fl D Ar debug-spec |
||
13 | .Op Fl l |
||
14 | .Op Fl v |
||
15 | .Op Ar log-name ... |
||
16 | . |
||
17 | .Sh DESCRIPTION |
||
18 | .Nm |
||
19 | be19c14d | Eric Allman | scans GDP log files and prints information about them. |
20 | 809d6cad | Eric Allman | It can only be run on the servers on which logs are actually stored, |
21 | i.e., this is a very low level diagnostic and debugging tool. |
||
22 | However, it does not attempt to assess log integrity and consistency; |
||
23 | for that, see |
||
24 | .Xr gdp-log-check 8 . |
||
25 | .Pp |
||
26 | If the |
||
27 | .Fl l |
||
28 | flag is given, |
||
29 | information about all logs hosted on the server is printed |
||
30 | be19c14d | Eric Allman | and no names may be listed on the command line. |
31 | 809d6cad | Eric Allman | Otherwise, at least one name must be listed on the command line. |
32 | .Pp |
||
33 | The amount and content of the output is driven by the |
||
34 | .Fl v |
||
35 | flag. |
||
36 | If not set, only the names of matching logs |
||
37 | (that is, the base-64 encoded printable version of the internal log names) |
||
38 | are printed. |
||
39 | The |
||
40 | .Fl v |
||
41 | flag may be repeated to get additional verbosity. |
||
42 | If any |
||
43 | .Fl v |
||
44 | flags are given, the output is multiple lines per log. |
||
45 | .Pp |
||
46 | Details of the output format (other than with no |
||
47 | .Fl v |
||
48 | flags given) are subject to change. |
||
49 | . |
||
50 | .Sh OPTIONS |
||
51 | . |
||
52 | .Bl -tag |
||
53 | . |
||
54 | .It Fl d Ar log-root-dir |
||
55 | be19c14d | Eric Allman | Sets the root of the tree that stores the GDP log files. |
56 | 809d6cad | Eric Allman | Defaults to the value of the |
57 | .Va swarm.gdplogd.gcl.dir |
||
58 | runtime parameter. |
||
59 | . |
||
60 | .It Fl D Ar debug-spec |
||
61 | Turns on debugging flags using the libep-style format. |
||
62 | Useful only with the code in hand. |
||
63 | be19c14d | Eric Allman | . |
64 | 809d6cad | Eric Allman | .It Fl l |
65 | be19c14d | Eric Allman | List all local logs, |
66 | somewhat like the |
||
67 | .Xr ls 1 |
||
68 | system command. |
||
69 | 809d6cad | Eric Allman | By default this is just the printable versions of the internal names, |
70 | be19c14d | Eric Allman | but is modified by the |
71 | .Fl v |
||
72 | flag. |
||
73 | 809d6cad | Eric Allman | . |
74 | .It Fl v |
||
75 | fe9fd7f9 | Eric Allman | Prints the log name, |
76 | the number of records in the log, |
||
77 | and the external human-oriented name of the log (if any). |
||
78 | This format is intended to be machine parsable. |
||
79 | . |
||
80 | .It Fl vv |
||
81 | Prints the log name, |
||
82 | the number of records, |
||
83 | and a summary of the standard |
||
84 | 809d6cad | Eric Allman | .Qq "built in" |
85 | metadata such as |
||
86 | External Name, |
||
87 | Creation Time, |
||
88 | and |
||
89 | Creator. |
||
90 | . |
||
91 | .It Fl vvv |
||
92 | As with |
||
93 | .Fl vv , |
||
94 | fe9fd7f9 | Eric Allman | but includes all metadata information. |
95 | 809d6cad | Eric Allman | . |
96 | .It Fl vvvv |
||
97 | fe9fd7f9 | Eric Allman | Adds hex dump of metadata values |
98 | and the record metadata (record number, length, timestamp, and signature). |
||
99 | 809d6cad | Eric Allman | . |
100 | .It Fl vvvvv |
||
101 | fe9fd7f9 | Eric Allman | Includes the content of all records. |
102 | 809d6cad | Eric Allman | . |
103 | .El |
||
104 | . |
||
105 | .Sh EXIT STATUS |
||
106 | .Bl -tag |
||
107 | . |
||
108 | .It Li EX_DATAERR |
||
109 | A syntax error was detected in the log metadata. |
||
110 | . |
||
111 | .It Li EX_OK |
||
112 | Successful result. |
||
113 | . |
||
114 | .It Li EX_NOINPUT |
||
115 | A log name listed on the command line did not exist. |
||
116 | . |
||
117 | .It Li EX_USAGE |
||
118 | Command line parameters are incorrect. |
||
119 | .El |
||
120 | . |
||
121 | .Sh ADMINISTRATIVE PARAMETERS |
||
122 | .Bl -tag |
||
123 | . |
||
124 | .It swarm.gdplogd.gcl.dir |
||
125 | The root of the pathname for GDP log directory files. |
||
126 | Overridden by |
||
127 | .Fl d . |
||
128 | . |
||
129 | .\".Sh ENVIRONMENT |
||
130 | . |
||
131 | .\".Sh FILES |
||
132 | . |
||
133 | .Sh SEE ALSO |
||
134 | .Xr gdp-log-check 8 |
||
135 | .\".Xr gdp 7 , |
||
136 | .\".Xr gdplogd 8 |
||
137 | . |
||
138 | .\".Sh EXAMPLES |
||
139 | . |
||
140 | .\".Sh BUGS |