how to construct Regex datapoint statements
I am not finding much documentation on how to construct regex statements for a datapoint other than this:
https://www.logicmonitor.com/support/logicmodules/datasources/datapoints/normal-datapoints
My goal is to convert a string from an SNMP walk. I currently can return the OID and receive the raw value.
My attempts so far have resulted in NaN:
datapointName:\[^\\d]", "”
datapointName:\"-.*", ""
OID is .1.3.6.1.4.1.9.9.156.1.1.2.1.4.1
Raw value is 12.5.1.16900-48
Thanks for any assistance.
Hey
@JaredM So, I don’t have that exact OID to test against, but I tested against this one in my own environment:
1.3.6.1.2.1.1.2.0 which returns a value of 1.3.6.1.4.1.8072.3.2.10
I was able to parse the 1.3 out of that returned value and show it in raw data using this regex:
^(\d+\.\d+)