Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

匹配不成功,是什么原因呢? #23

Closed
leo-lu opened this issue Sep 14, 2018 · 2 comments
Closed

匹配不成功,是什么原因呢? #23

leo-lu opened this issue Sep 14, 2018 · 2 comments

Comments

@leo-lu
Copy link

leo-lu commented Sep 14, 2018

cat cfg/strategy.json
[
{
"id":1,
"name":"流量500错误数",
"file_path":"/root/log/access.log",
"time_format":"yyyy-mm-dd HH:MM:SS",
"pattern":"error",
"exclude":"",
"step":5,
"tags":{
},
"func":"cnt",
"degree":6,
"comment":"我是Error 500"
}
]

curl -s -XPOST localhost:8003/check -d 'log=2017/12/01 12:12:06 service error 505, num=10 province=33' | python -m json.tool

{
"body": [],
"matched": false
}

@GaoJiasheng
Copy link
Member

"time_format":"yyyy-mm-dd HH:MM:SS",
2017/12/01 12:12:06 service error 505

时间格式不对。。。

@leo-lu
Copy link
Author

leo-lu commented Sep 25, 2018

粗心了,谢谢!~

@leo-lu leo-lu closed this as completed Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants