`
taupo
  • 浏览: 29415 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
社区版块
存档分类
最新评论

Matcher log

    博客分类:
  • BAC
阅读更多

Trinity listens to BAC's BUS and delivers every sample to the Matcher.


The Matcher uses the CIs/KPIs selectors to determine which element accepts that sample.

 

Tracking the samples handled by Matcher requires turning on the DEBUG mode in:


<Processing machine>\HPBAC\conf\core\Tools\log4j\mercury_online_engine\bleOnline.properties


Change-


#log4j.category.Trinity.com.mercury.am.platform.processing.ble.core.impl.matcher=$loglevel, trinity.file.appender


To-


log4j.category.Trinity.com.mercury.am.platform.processing.ble.core.impl.matcher=DEBUG, trinity.file.appender

 

In order to realize what sample in mapped to a sample number turn on the TrinitySample DEBUG mode in the same file


Change-


log4j.category.Trinity.com.mercury.am.platform.processing.ble.core.impl.matcher=$loglevel, trinity.file.appender


To-


log4j.category.Trinity.com.mercury.am.platform.processing.ble.core.impl.matcher=DEBUG, trinity.file.appender
 

Follow this log file:


<Processing machine>\HPBAC\log\mercury_online_engine\Trinity.log


and


<Processing machine>\HPBAC\log\mercury_online_engine\TrinitySamples.log
Note: Do not forget to turn off the DEBUG mode when done; The Matcher log appender in commented in default.

 

 

 

Problem

Monitor KPI is not calculating

Solution

Check for matching samples in TrinitySamples.log on MercuryAM\log\mercury_online_engine :
In bleOnline.properties file on MercuryAM\conf\core\Tools\log4j\mercury_online_engine
1. Change BLE_SAMPLES to debug
2. Add this line to the properties file
log4j.category.Trinity.com.mercury.am.platform.processing.ble.core.impl.matcher.BLEContextMatcherImpl=DEBUG, trinity.samples.appender

a. In case you find your sample and there is a match-

Context DASHBOARD for 1 received sample (#6867):
...sample details...
For sample #6867 of type trans_t in context DASHBOARD for 1 the matching is [59c6a274e0a8761eb89bff7bfd3df0d0]

There could be a problem with the timestamp, check if the BAC machine time is synchronize with the DB machine time.

b. In case you find your sample and there is no match-

Context DASHBOARD for 1 received sample (#7203):
...sample details...
No match for sample #7203 of type event in context DASHBOARD for 1

There could be a problem with the selector, check for the selector definition on Dashboard Admin.

c. In case the sample is not in the file, although you have send it, then look at dispatcher_log.txt on MerucyrAM\log\core there you can see the samples as they were received from the BUS- and the error that prevents them from getting to TrinitySamples.log and to the DB.

d. If none of those solutions work - look at bam.app.rules.log, rulesfwk.log and Trinity.log for errors.

<!-- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"> <rdf:Description rdf:about="http://rndwiki.atlanta.hp.com/confluence/display/cord/Matcher" dc:identifier="http://rndwiki.atlanta.hp.com/confluence/display/cord/Matcher" dc:title="Matcher" trackback:ping="http://rndwiki.atlanta.hp.com/confluence/rpc/trackback/200730" /> </rdf:RDF> -->
分享到:
评论

相关推荐

    Node.js-matcher-简单的通配符匹配

    console.log(matcher(files, pattern)); // 输出:['file1.txt', 'file2.js'] ``` Matcher库不仅支持基本的星号和问号,还提供了对扩展通配符的支持,如使用方括号`[]`来指定字符范围。例如,`[abc]`会匹配`a`、`b`...

    template-matcher:lodash.template模式匹配提取到单独的模块中

    模板匹配器 模式匹配提取到单独的模块中安装npm install template-matcher --save用法 var matcher = require ( 'template-matcher' ) ;var matches = matcher ( '... log ( matches ) ;// ['attr', 'content']信用参见

    media-query-matcher:通过使用本地matchMedia API检测是否在页面上应用了媒体查询

    浏览器支持IE 10以上火狐浏览器Chrome合金苹果浏览器安装npm install media-query-matcher --save例子 var MediaQueryMatcher = require ( 'media-query-matcher' ) ;var mqMatcher = new MediaQueryMatcher ( {'...

    no_intro_dat_matcher:基于no_intro文件名的ROM的漂亮名称

    (也是Redump DAT Matcher) 基于No-Intro / Redump文件名的ROM文件的漂亮文件名。 脚本将对文件进行哈希处理,并将其与dat文件中的相应哈希进行匹配,并从那里使用文件名,然后将具有新文件名的文件复制到输出...

    yii-matcher:用于在Yii2中轻松测试模型的类

    安装: ## $ php composer.phar require developeruz/yii-matcher " * "用法示例:## use developeruz\yii_matcher\ ModelMatcher ;class ValidateTest extends TestCase { public function ...

    使用Java正则表达式分析处理日志

    2. **创建Matcher对象**:使用`Pattern`对象的`matcher()`方法,传入日志文本,得到`Matcher`对象,例如`Matcher matcher = pattern.matcher(logText)`。 3. **执行匹配**:调用`Matcher`对象的`find()`方法来查找...

    desensitization.zip

    Matcher matcher = pattern.matcher(idCard); if (matcher.find()) { return idCard.replaceAll("\\d{6}(\\d{4})\\d{4}(\\d{4})\\d{1,2}", "$1****$2"); } return idCard; } public static void main(String...

    Java正则表达式简单应用

    这篇博客将带你了解Java正则表达式的简单应用,并结合两个示例文件`parse_redbend_log`和`eyesaver`进行讲解。 在Java中,正则表达式通常通过`java.util.regex`包中的类来使用,如`Pattern`和`Matcher`。`Pattern`...

    EL,正则表达式,java中常用的验证语言

    `Pattern`类负责编译正则表达式,而`Matcher`类则用于在特定输入字符串上执行模式匹配。例如: ```java String regex = "\\w+@\\w+\\.com"; Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern....

    表单验证(用到正则表达式)

    Matcher matcher = pattern.matcher(email); if (matcher.matches()) { out.println("Valid email"); } else { out.println("Invalid email"); } %&gt; ``` 在这个JSP示例中,我们首先获取用户提交的邮箱地址,...

    有关正则表达式的介绍

    Matcher matcher = pattern.matcher(input); if (matcher.matches()) { System.out.println("Valid email address"); } else { System.out.println("Invalid email address"); } } } ``` 在JavaScript中,...

    java代码-Nginx log escape

    4. **正则表达式替换**:对于更复杂的转义需求,可以使用`java.util.regex.Pattern`和`java.util.regex.Matcher`来编写自定义的替换规则,比如替换掉日志中的特定字符或模式。 5. **日志框架集成**:许多Java应用...

    java \javascript 正则表达式

    Matcher matcher = pattern.matcher(input); if (matcher.find()) { System.out.println("找到了匹配项: " + matcher.group()); } else { System.out.println("未找到匹配项"); } } } ``` 在JavaScript中...

    设置输入的内容只能由英文字母、数字组成

    Matcher matcher = pattern.matcher(input); if (matcher.matches()) { System.out.println("输入有效"); } else { System.out.println("输入无效"); } ``` 对于标签中的“源码”,理解正则表达式的内部机制和...

    只能输入10位以内数字的实例

    Matcher matcher = pattern.matcher(inputNum); return matcher.matches(); } public static void main(String[] args) { System.out.println(validateInput("1234567890")); // 输出: true System.out....

    jest-axe:自定义Jest Matcher for Axe以测试可访问性:wheelchair_symbol::joker:

    自定义 Matcher for 以测试可访问性 :warning: :raised_hand: 该项目不能保证您所构建的内容是可访问的。 GDS可访问性团队发现,只有。 诸如ax之类的工具类似于诸如或类的 :它们可以找到常见问题,但不能保证您...

    正则表达式基本语法详解_正则表达式_脚本之家1

    Matcher matcher = pattern.matcher(str); if (matcher.matches()) { System.out.println("匹配成功!"); } else { System.out.println("匹配失败!"); } } } ``` JavaScript 中的正则表达式 在 JavaScript ...

    jakarta-oro-2.0.1

    这个2.0.1版本的发布在与日志处理框架如Log4j配合使用时,能够极大地增强对日志数据的分析和过滤能力。 Jakarta ORO库的核心功能主要围绕Perl5兼容的正则表达式(PCRE)实现,这使得开发者可以使用类似于Perl的语法...

    正则学习demo

    Matcher matcher = pattern.matcher(input); while (matcher.find()) { System.out.println(matcher.group()); } } } ``` 3. JavaScript中的正则表达式 - 直接在字符串中使用正则表达式,如`/pattern/flags...

    Java JS正则表达式大全

    Matcher matcher = pattern.matcher(input); if (matcher.matches()) { System.out.println("匹配成功"); } else { System.out.println("匹配失败"); } } } ``` JavaScript的正则表达式同样强大,它们可以...

Global site tag (gtag.js) - Google Analytics