GithubHelp home page GithubHelp logo

Comments (4)

Steve24by7 avatar Steve24by7 commented on June 2, 2024

Can you provide the command output to help understand how the data maps to the parsing command please?

from newrelic-unix-monitor.

ricegi avatar ricegi commented on June 2, 2024

I think the decimal point in the value is causing the issue for the match.

Can you try something like (\S+)\s+[0-9]\d*(\.\d+)?$
I think that should match the decimal condition. > https://www.freeformatter.com/java-regex-tester.html is super handy for getting the grouped regex expression

from newrelic-unix-monitor.

AlaAlmarayat avatar AlaAlmarayat commented on June 2, 2024

thank you guys

I found a work around, and it's working now fine.

from newrelic-unix-monitor.

md-toro avatar md-toro commented on June 2, 2024

thank you guys

I found a work around, and it's working now fine.

What is the workaround? I'm have a similar issue with my monitor.

Sending a list of files with the path, date and age in seconds. Only the last file is posted.
2023-06-20 20:33:16 [pool-2-thread-1] DEBUG c.n.infra.unix.CommandMetricUtils - Line MATCHED: 1648201985 /etc/usb_modeswitch.conf 39091211
2023-06-20 20:33:16 [pool-2-thread-1] DEBUG c.n.infra.unix.CommandMetricUtils - Regex: (\d+)\s+(\S+)\s+(\d+)
2023-06-20 20:33:16 [pool-2-thread-1] DEBUG c.n.infra.unix.CommandMetricUtils - Inserting Metric: file.epoch : 1.648201985E9
2023-06-20 20:33:16 [pool-2-thread-1] DEBUG c.n.infra.unix.CommandMetricUtils - Inserting Metric: file.path : /etc/usb_modeswitch.conf
2023-06-20 20:33:16 [pool-2-thread-1] DEBUG c.n.infra.unix.CommandMetricUtils - Inserting Metric: file.age : 3.9091211E7
2023-06-20 20:33:16 [pool-2-thread-1] DEBUG c.n.infra.unix.CommandMetricUtils - Line MATCHED: 1648028509 /etc/xattr.conf 39264687
2023-06-20 20:33:16 [pool-2-thread-1] DEBUG c.n.infra.unix.CommandMetricUtils - Regex: (\d+)\s+(\S+)\s+(\d+)
2023-06-20 20:33:16 [pool-2-thread-1] DEBUG c.n.infra.unix.CommandMetricUtils - Inserting Metric: file.epoch : 1.648028509E9
2023-06-20 20:33:16 [pool-2-thread-1] DEBUG c.n.infra.unix.CommandMetricUtils - Inserting Metric: file.path : /etc/xattr.conf
2023-06-20 20:33:16 [pool-2-thread-1] DEBUG c.n.infra.unix.CommandMetricUtils - Inserting Metric: file.age : 3.9264687E7
2023-06-20 20:33:16 [pool-2-thread-1] DEBUG c.n.insights.publish.InsightsClient - Response is HTTP/1.1 200 OK

from newrelic-unix-monitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.