<key description="Hostname Aliases" level="IndexValues" name="alias.host" format="Text" valueMax="2500000" />
This shows that the alias.host meta key can contain up to 2500000 unique values in an index slice.In some cases, the number of unique values for a key may exceed any setting of ValueMax that is used. For example, if you were to index URLs seen by the system then the index for this meta key would become quickly full due to the large number of unique possible values. For source ports and destination ports for a TCP session then there is a maximum of 65536 possible values so the valueMax is set to this value.
When a meta key is full the following will be seen in /var/log/messages on the concentrator:
Sep 18 16:40:20 logconc nw[11922]: [Index] [warning] Index key alias.host has reached max capacity of 2500000 values and will ignore new values for this slice.
<MESSAGE
level="1"
parse="1"
parsedefvalue="1"
tableid="1"
id1="Index:45"
id2="Index"
eventcategory="1612010000"
content="<@event_description:Index Key Full>[warning] Index key <metakey> has reached max capacity of <fld2> values and will ignore new values for this slice."/>
3. Add the following meta key to your concentrators in the /etc/netwitness/ng/index-concentrator-custom.xml
<key description="Meta Keys" level="IndexValues" name="metakey" format="Text" valueMax="1000" />
<mapping envisionName="metakey" nwName="metakey" flags="None" format="Text"/>
# Concentrators 1
0,30 * * * * /root/index-profile-1.2.pl <Concentrator1_IP> index-snap-1.csv >> index-snap-1.csv
# Concentrator 2
0,30 * * * * /root/index-profile-1.2.pl <Concentrator2_IP> index-snap-2.csv >> index-snap-2.csv
Session | sourcefile | sinterface | content | policy.name | device.name | tld | city.src | alias.host | category | udp.srcport | event.computer | country.src | |
9472259 | 0.00% | 0.00% | 0.00% | 4.45% | 0.00% | 0.00% | 0.00% | 4.65% | 2.81% | 5.87% | 0.00% | 0.10% | 2.13% |
26421267 | 0.00% | 0.00% | 0.00% | 9.58% | 0.00% | 0.00% | 0.00% | 6.70% | 5.43% | 7.23% | 0.00% | 0.10% | 2.38% |
18719236 | 0.00% | 0.00% | 0.00% | 8.11% | 0.00% | 0.00% | 0.00% | 6.30% | 4.20% | 6.66% | 0.00% | 0.10% | 2.40% |
33624165 | 0.00% | 0.00% | 0.00% | 13.62% | 0.00% | 0.00% | 0.00% | 7.69% | 6.38% | 7.70% | 0.00% | 0.10% | 2.55% |
48796236 | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% | 0.00% |
62908505 | 0.00% | 0.00% | 0.00% | 32.48% | 0.00% | 0.00% | 0.00% | 9.54% | 9.91% | 8.94% | 0.00% | 0.10% | 2.71% |
76682159 | 0.00% | 0.00% | 0.00% | 40.05% | 0.00% | 0.00% | 0.00% | 10.34% | 11.36% | 9.39% | 0.00% | 0.10% | 2.78% |
88894056 | 0.00% | 0.00% | 0.00% | 44.02% | 0.00% | 0.00% | 0.00% | 11.11% | 12.70% | 9.73% | 0.00% | 0.10% | 2.81% |
100426583 | 0.00% | 0.00% | 0.00% | 50.97% | 0.00% | 0.00% | 0.00% | 11.59% | 13.84% | 10.04% | 0.00% | 0.10% | 2.84% |
115804180 | 0.00% | 0.00% | 0.00% | 57.16% | 0.00% | 0.00% | 0.00% | 12.19% | 15.27% | 10.38% | 0.00% | 0.10% | 2.86% |
129613715 | 0.00% | 0.00% | 0.00% | 65.50% | 0.00% | 0.00% | 0.00% | 12.68% | 16.49% | 10.65% | 0.00% | 0.10% | 2.89% |
141790056 | 0.00% | 0.00% | 0.00% | 68.83% | 0.00% | 0.00% | 0.00% | 13.14% | 17.69% | 10.95% | 0.00% | 0.10% | 2.93% |
153489616 | 0.00% | 0.00% | 0.00% | 72.53% | 0.00% | 0.00% | 0.00% | 13.53% | 18.86% | 11.12% | 0.00% | 0.10% | 2.94% |
161713547 | 0.00% | 0.00% | 0.00% | 74.81% | 0.00% | 0.00% | 0.00% | 13.77% | 19.73% | 11.19% | 0.00% | 0.10% | 2.95% |
174303022 | 0.00% | 0.00% | 0.00% | 78.22% | 0.00% | 0.00% | 0.00% | 14.38% | 20.92% | 11.37% | 0.00% | 0.10% | 2.97% |
183091639 | 0.00% | 0.00% | 0.00% | 81.39% | 0.00% | 0.00% | 0.00% | 14.73% | 21.72% | 11.49% | 0.00% | 0.10% | 3.00% |
192322898 | 0.00% | 0.00% | 0.00% | 84.70% | 0.00% | 0.00% | 0.00% | 14.93% | 22.51% | 11.64% | 0.00% | 0.10% | 3.01% |
198379858 | 0.00% | 0.00% | 0.00% | 86.79% | 0.00% | 0.00% | 0.00% | 15.10% | 23.00% | 11.82% | 0.00% | 0.10% | 3.01% |
203343360 | 0.00% | 0.00% | 0.00% | 89.23% | 0.00% | 0.00% | 0.00% | 15.23% | 23.46% | 11.87% | 0.00% | 0.10% | 3.02% |
216383778 | 0.00% | 0.00% | 0.00% | 93.93% | 0.00% | 0.00% | 0.00% | 15.61% | 24.51% | 12.09% | 0.00% | 0.10% | 3.08% |
224762659 | 0.00% | 0.00% | 0.00% | 97.18% | 0.00% | 0.00% | 0.00% | 15.83% | 25.20% | 12.27% | 0.00% | 0.10% | 3.09% |
233054034 | 0.00% | 0.00% | 0.00% | 100.00% | 0.00% | 0.00% | 0.00% | 16.05% | 25.91% | 12.49% | 0.00% | 0.10% | 3.09% |
[root@localhost] ➤ ./index-profile.py -h
usage: index-profile.py [-h] [-f OUTPUTFILE] [--host HOST] [--port PORT] [-S]
[-u USERNAME] [-p PASSWORD] [--horizontal]
[--addHeaders] [-d]
Evaluate the status of the current index slices on the designated device. This
script returns a csv output/file that contains a listing on keys with their
undying usage of the most recent index slice they exist in. Note that if a key
is seldomly used, this may not be from the current slice. This value is
displayed as a percentage by default. The first number is the number of
sessions currently in this index slice. Think of this as the bookmark for our
results.
optional arguments:
-h, --help show this help message and exit
-f OUTPUTFILE, --OutputFile OUTPUTFILE
Designate an output filename that will be a CSV.
(indexstatus.csv by default)
--host HOST Define the host that we will check the index on.
(localhost by default)
--port PORT Define the port that we will attempt to connect on the
host. (50105 by default)
-S, -s, --SSL Enable this if the REST Port is using SSL. (False by
default)
-u USERNAME, --username USERNAME
Define the user that will connect on the Service API
(admin by default)
-p PASSWORD, --password PASSWORD
Define the password the user will use to connect to
the Service API (netwitness by default)
--horizontal Horizontal Output with raw values. Vertical/Default
output only puts percentages.
--addHeaders When appending an existing file, add the headers
before printing the next set of results again. This is
not necessary if the file is brand new
-d, -D Debug Mode: This really just helps out with what was collected when parsed from API.
While running on the concentrator itself, you may not need to pass any options at all if you are running a standard configuration.
# Concentrators 1 which has a non standard service username and password
0,30 * * * * /root/index-profile.py --host 192.168.2.101 -u admin -p NETWITNESS11 -f /root/index-status-1.csv > /dev/null 2>&1
# Concentrator 2 which has an SSL REST API enabled
0,30 * * * * /root/index-profile.py --host 192.168.2.102 -S -f /root/index-status-2.csv > /dev/null 2>&1