-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathipfixcol-postgres-output.dbk
166 lines (160 loc) · 4.73 KB
/
ipfixcol-postgres-output.dbk
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
<?xml version="1.0" encoding="utf-8"?>
<refentry
xmlns:db="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/1999/xlink http://docbook.org/xml/5.0/xsd/xlink.xsd
http://docbook.org/ns/docbook http://docbook.org/xml/5.0/xsd/docbook.xsd"
version="5.0" xml:lang="en">
<info>
<copyright>
<year>2008-2015</year>
<holder>CESNET, z.s.p.o.</holder>
</copyright>
<date>6 March 2012</date>
<authorgroup>
<author>
<personname>
<firstname>Michal</firstname>
<surname>Srb</surname>
</personname>
<email>[email protected]</email>
<contrib>developer</contrib>
</author>
<author>
<personname>
<firstname>Petr</firstname>
<surname>Velan</surname>
</personname>
<email>[email protected]</email>
<contrib>documentation</contrib>
</author>
</authorgroup>
<orgname>The Liberouter Project</orgname>
</info>
<refmeta>
<refentrytitle>ipfixcol-postgres-output</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo otherclass="manual" class="manual">PostgreSQL output plugin for IPFIXcol.</refmiscinfo>
</refmeta>
<refnamediv>
<refname>ipfixcol-postgres-output</refname>
<refpurpose>PostgreSQL output plugin for IPFIXcol.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<simpara>
The <command>ipfix-postgres-output</command> plugin is a part of IPFIXcol (IPFIX collector).
It provides means to store flow data info PostgreSQL database. Recommended PostgreSQL version is at least 8.4.9.
</simpara>
</refsect1>
<refsect1>
<title>Configuration</title>
<simpara>The collector must be configured to use postgres output plugin in startup.xml configuration (<filename>/etc/ipfixcol/startup.xml</filename>).
The configuration specifies which plugins (destinations) are used by the collector to store data and provides configuration for the plugins themselves.
</simpara>
<simpara><filename>startup.xml</filename> postgres example</simpara>
<programlisting>
<![CDATA[
<destination>
<name>store data records in PostgreSQL database</name>
<fileWriter>
<fileFormat>postgres</fileFormat>
<host>localhost</host>
<hostaddr>localhost</hostaddr>
<port>5432</port>
<dbname>test</dbname>
<user>username</user>
<pass>password</pass>
</fileWriter>
</destination>
]]>
</programlisting>
<para>
<variablelist>
<varlistentry>
<term><command>fileFormat</command></term>
<listitem>
<simpara>Same as in <filename>internalcfg.xml</filename> file.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><command>host</command></term>
<listitem>
<simpara>Name of host to connect to.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><command>hostaddr</command></term>
<listitem>
<simpara>IP address of host to connect to.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><command>port</command></term>
<listitem>
<simpara>Port number to connect to at the server host.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><command>dbname</command></term>
<listitem>
<simpara>Name of the database.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><command>user</command></term>
<listitem>
<simpara>PostgreSQL user name to use for connection.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><command>pass</command></term>
<listitem>
<simpara>Password to be used if the server demands password authentication.</simpara>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1>
<title>See Also</title>
<para></para>
<para>
<variablelist>
<varlistentry>
<term>
<citerefentry><refentrytitle>ipfixcol</refentrytitle><manvolnum>1</manvolnum></citerefentry>
</term>
<listitem>
<simpara>Man pages</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<link xlink:href="http://www.liberouter.org/technologies/ipfixcol/">http://www.liberouter.org/technologies/ipfixcol/</link>
</term>
<listitem>
<para>IPFIXcol Project Homepage</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<link xlink:href="http://www.liberouter.org">http://www.liberouter.org</link>
</term>
<listitem>
<para>Liberouter web page</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<email>[email protected]</email>
</term>
<listitem>
<para>Support mailing list</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
</refentry>