Forum Discussion

JaredM's avatar
JaredM
Icon for Neophyte rankNeophyte
2 years ago

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 ...
  • LMjosephBrett's avatar
    2 years ago

    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+)