We are gathering our firewall data from our cisco ASA 5545 via snmp v3.
Now when we query ciscoMemoryPoolFree somewhere an overflow occurs.
Return value:
CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree.1 = Gauge32: 4294967295 bytes
When this value gets saved into elasticsearch it is saved as -1.
Thanks for your reply.
So if this is the normal behaviour, how can i change the mapping in logstash so that the correct values are written to elasticsearch?
OK, so you want it to be integer, not long. Which makes sense, since the RFC defines Guage32 to be a non-negative integer...
The Gauge32 type represents a non-negative integer, which may
increase or decrease, but shall never exceed a maximum value, nor
fall below a minimum value. The maximum value can not be greater
than 2^32-1 (4294967295 decimal), and the minimum value can not be
smaller than 0. The value of a Gauge32 has its maximum value
whenever the information being modeled is greater than or equal to
its maximum value
I retract this. The number you have is the largest 32-bit unsigned integer. However, in elasticsearch the integer type is signed, so your value is too large to fit.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.