Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
childe committed Aug 16, 2018
1 parent 1bfeee4 commit 52a09e6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 21 deletions.
51 changes: 31 additions & 20 deletions conf/simpletest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,37 @@ inputs:
type: stdin1

filters:
- Filters:
id: 'f1'
if:
- '<#if message??>true</#if>'
- '<#if message?contains("liu")>true<#elseif message?contains("warn")>true</#if>'
filters:
- Add:
fields:
test: 'abcd'
- Add:
fields:
addfield1: 'field1content'
- Add:
fields:
addfield2: 'field2content'
- Grok:
match:
- '^(?<logtime>\S+) (?<user>\w+) (-|(?<level>\w+)) %{DATA:msg}$'
remove_fields: ['message']
tag_on_failure: '' # do not add tags; deafult "grokfail" addfield2: 'field2content'
- Filters:
id: 'f1'
if:
- '<#if message??>true</#if>'
- '<#if message?contains("liu")>true<#elseif message?contains("warn")>true</#if>'
filters:
- Add:
fields:
test: 'abcd'
- Add:
fields:
addfield1: 'field1content'
- Add:
fields:
addfield2: 'field2content'
- Grok:
match:
- '^(?<logtime>\S+) (?<user>\w+) (-|(?<level>\w+)) %{DATA:msg}$'
remove_fields: ['message']
tag_on_failure: '' # do not add tags; deafult "grokfail" addfield2: 'field2content'
#- Date:
#src: logtime
#formats:
#- UNIX
- LinkMetric:
fieldsLink: 'user->level'
timestamp: '@timestamp'
reserveWindow: 1200 #20m
batchWindow: 5
add_fields:
filtertype: metric

outputs:
- Stdout: {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ctrip.ops.hangout.filter;
package com.ctrip.ops.sysdev.filters;


import com.ctrip.ops.sysdev.baseplugin.BaseOutput;
Expand Down

0 comments on commit 52a09e6

Please sign in to comment.