diff options
| author | lishu <[email protected]> | 2018-11-12 10:59:03 +0800 |
|---|---|---|
| committer | lishu <[email protected]> | 2018-11-12 10:59:03 +0800 |
| commit | 69965fc7d12a4e77d758c9e83232f9fbdab6e634 (patch) | |
| tree | 2a6ee861aecda4b164034a99766108a9c515ef6b | |
碎片化前端插件 外网
21 files changed, 2782 insertions, 0 deletions
diff --git a/SI/frag_monitor.IAB b/SI/frag_monitor.IAB Binary files differnew file mode 100644 index 0000000..b5aaf99 --- /dev/null +++ b/SI/frag_monitor.IAB diff --git a/SI/frag_monitor.IAD b/SI/frag_monitor.IAD Binary files differnew file mode 100644 index 0000000..b208f6d --- /dev/null +++ b/SI/frag_monitor.IAD diff --git a/SI/frag_monitor.IMB b/SI/frag_monitor.IMB Binary files differnew file mode 100644 index 0000000..60c6aee --- /dev/null +++ b/SI/frag_monitor.IMB diff --git a/SI/frag_monitor.IMD b/SI/frag_monitor.IMD Binary files differnew file mode 100644 index 0000000..8ebdeb6 --- /dev/null +++ b/SI/frag_monitor.IMD diff --git a/SI/frag_monitor.PFI b/SI/frag_monitor.PFI Binary files differnew file mode 100644 index 0000000..69f082f --- /dev/null +++ b/SI/frag_monitor.PFI diff --git a/SI/frag_monitor.PO b/SI/frag_monitor.PO Binary files differnew file mode 100644 index 0000000..affc3d3 --- /dev/null +++ b/SI/frag_monitor.PO diff --git a/SI/frag_monitor.PR b/SI/frag_monitor.PR Binary files differnew file mode 100644 index 0000000..cf9e974 --- /dev/null +++ b/SI/frag_monitor.PR diff --git a/SI/frag_monitor.PRI b/SI/frag_monitor.PRI Binary files differnew file mode 100644 index 0000000..c1a230b --- /dev/null +++ b/SI/frag_monitor.PRI diff --git a/SI/frag_monitor.PS b/SI/frag_monitor.PS Binary files differnew file mode 100644 index 0000000..48666c1 --- /dev/null +++ b/SI/frag_monitor.PS diff --git a/bin/frag_monitor.so b/bin/frag_monitor.so Binary files differnew file mode 100644 index 0000000..437a884 --- /dev/null +++ b/bin/frag_monitor.so diff --git a/bin/frag_monitor/bak_before_20181112/frag_monitor.json_20160928 b/bin/frag_monitor/bak_before_20181112/frag_monitor.json_20160928 new file mode 100644 index 0000000..b7b636b --- /dev/null +++ b/bin/frag_monitor/bak_before_20181112/frag_monitor.json_20160928 @@ -0,0 +1,289 @@ +{ + "compile_table": "FRAG_MONITOR_CONFIG_FULL", + "group_table": "FRAG_MONITOR_GROUP", + "rules": + [ + { + "compile_id": 7, + "service": 2222, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "tudou_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&.ts&ts_start&ts_end&ts_seg_no", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 8, + "service": 2222, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "tudou_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_SERVER&YOUKU.BJ.FBN", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 9, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "tudou_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&/playlist/m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 10, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "tudou_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT&#EXTM3U&#EXTINF&ts&start&end", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 1, + "service": 1122, + "action": 0, + "do_blacklist": 161, + "do_log": 2, + "effective_rage": 0, + "user_region": "osmf_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&Seg&Frag", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + + { + "compile_id": 3, + "service": 2122, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "hls_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&.ts", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 4, + "service": 2122, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "hls_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&application/x-transportstream", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&video/mp2t", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&video/x-flv", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 5, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "hls_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 6, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "hls_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_s2c_1", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&application/vnd.apple.mpegurl", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + }, + { + "group_name": "hls_index_s2c_2", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT&#EXTM3U", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + } + ] +} diff --git a/bin/frag_monitor/bak_before_20181112/frag_monitor.json_20170515 b/bin/frag_monitor/bak_before_20181112/frag_monitor.json_20170515 new file mode 100644 index 0000000..2a74b39 --- /dev/null +++ b/bin/frag_monitor/bak_before_20181112/frag_monitor.json_20170515 @@ -0,0 +1,310 @@ +{ + "compile_table": "FRAG_MONITOR_CONFIG_FULL", + "group_table": "FRAG_MONITOR_GROUP", + "rules": + [ + { + "compile_id": 7, + "service": 2222, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "tudou_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&.ts&ts_start&ts_end&ts_seg_no", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 8, + "service": 2222, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "tudou_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_SERVER&YOUKU.BJ.FBN", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 9, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "tudou_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&/playlist/m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 10, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "tudou_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT&#EXTM3U&#EXTINF&ts&start&end", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 1, + "service": 1122, + "action": 0, + "do_blacklist": 161, + "do_log": 2, + "effective_rage": 0, + "user_region": "osmf_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&Seg&Frag", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 2, + "service": 1122, + "action": 2, + "do_blacklist": 161, + "do_log": 2, + "effective_rage": 0, + "user_region": "osmf_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&f4f", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 3, + "service": 2122, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "hls_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&.ts", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 4, + "service": 2122, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "hls_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&application/x-transportstream", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&video/mp2t", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&video/x-flv", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 5, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "hls_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 6, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "hls_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&application/vnd.apple.mpegurl", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } , + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT&#EXTM3U", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + } + ] +} diff --git a/bin/frag_monitor/bak_before_20181112/frag_monitor.json_online b/bin/frag_monitor/bak_before_20181112/frag_monitor.json_online new file mode 100644 index 0000000..67e1c10 --- /dev/null +++ b/bin/frag_monitor/bak_before_20181112/frag_monitor.json_online @@ -0,0 +1,371 @@ +{ + "compile_table": "FRAG_MONITOR_CONFIG_FULL", + "group_table": "FRAG_MONITOR_GROUP", + "rules": + [ + { + "compile_id": 11, + "service": 3122, + "action": 0, + "do_blacklist": 166, + "do_log": 2, + "effective_range": 0, + "user_region": "iqiyi_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "iqiyi_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "video&f4v&range", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 12, + "service": 3122, + "action": 2, + "do_blacklist": 160, + "do_log": 2, + "effective_range": 0, + "user_region": "iqiyi_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "iqiyi_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "application/octet-stream", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 7, + "service": 2222, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "tudou_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".ts&ts_start&ts_end&ts_seg_no", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 8, + "service": 2222, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "tudou_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_SERVER", + "keywords": "YOUKU.BJ.FBN", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 9, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "tudou_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "/playlist/m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 10, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "tudou_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONTENT", + "keywords": "#EXTM3U&#EXTINF&ts&start&end", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 1, + "service": 1122, + "action": 0, + "do_blacklist": 161, + "do_log": 2, + "effective_range": 0, + "user_region": "osmf_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "Seg&Frag", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 2, + "service": 1122, + "action": 2, + "do_blacklist": 161, + "do_log": 2, + "effective_range": 0, + "user_region": "osmf_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "f4f", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + + { + "compile_id": 3, + "service": 2122, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "hls_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".ts", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 4, + "service": 2122, + "action": 2, + "do_blacklist": 167, + "do_log": 2, + "effective_range": 0, + "user_region": "hls_data_s2c", + "is_valid": "yes", + "groups": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "video/mp2t", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "video/x-flv", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 5, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "hls_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 6, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "hls_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_s2c_1", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "application/vnd.apple.mpegurl", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONTENT", + "keywords": "#EXTM3U", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + } + ] +} + + + + diff --git a/bin/frag_monitor/bak_before_20181112/frag_monitor_20160901.json_lishu b/bin/frag_monitor/bak_before_20181112/frag_monitor_20160901.json_lishu new file mode 100644 index 0000000..120eaa1 --- /dev/null +++ b/bin/frag_monitor/bak_before_20181112/frag_monitor_20160901.json_lishu @@ -0,0 +1,289 @@ +{ + "compile_table": "FRAG_MONITOR_CONFIG_FULL", + "group_table": "FRAG_MONITOR_GROUP", + "rules": + [ + { + "compile_id": 1, + "service": 1122, + "action": 0, + "do_blacklist": 161, + "do_log": 2, + "effective_rage": 0, + "user_region": "osmf_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&Seg&Frag", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + + { + "compile_id": 3, + "service": 2122, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "hls_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&.ts", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 4, + "service": 2122, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "hls_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&application/x-transportstream", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&video/mp2t", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&video/x-flv", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 5, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "hls_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 6, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "hls_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_s2c_1", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&application/vnd.apple.mpegurl", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + }, + { + "group_name": "hls_index_s2c_2", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT&#EXTM3U", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 7, + "service": 2222, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "tudou_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&.ts&ts_start&ts_end&ts_seg_no", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 8, + "service": 2222, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "tudou_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_SERVER&YOUKU.BJ.FBN", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 9, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "tudou_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&/playlist/m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 10, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "tudou_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT&#EXTM3U&#EXTINF&ts&start&end", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + ] +} diff --git a/bin/frag_monitor/bak_before_20181112/frag_monitor_20170912.json b/bin/frag_monitor/bak_before_20181112/frag_monitor_20170912.json new file mode 100644 index 0000000..b7b636b --- /dev/null +++ b/bin/frag_monitor/bak_before_20181112/frag_monitor_20170912.json @@ -0,0 +1,289 @@ +{ + "compile_table": "FRAG_MONITOR_CONFIG_FULL", + "group_table": "FRAG_MONITOR_GROUP", + "rules": + [ + { + "compile_id": 7, + "service": 2222, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "tudou_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&.ts&ts_start&ts_end&ts_seg_no", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 8, + "service": 2222, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "tudou_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_SERVER&YOUKU.BJ.FBN", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 9, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "tudou_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&/playlist/m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 10, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "tudou_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT&#EXTM3U&#EXTINF&ts&start&end", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 1, + "service": 1122, + "action": 0, + "do_blacklist": 161, + "do_log": 2, + "effective_rage": 0, + "user_region": "osmf_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&Seg&Frag", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + + { + "compile_id": 3, + "service": 2122, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "hls_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&.ts", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 4, + "service": 2122, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_rage": 0, + "user_region": "hls_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&application/x-transportstream", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&video/mp2t", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&video/x-flv", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 5, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "hls_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "C2S_URL&m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 6, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_rage": 0, + "user_region": "hls_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_s2c_1", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT-TYPE&application/vnd.apple.mpegurl", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + }, + { + "group_name": "hls_index_s2c_2", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "string", + "table_content": { + "keywords": "S2C_CONTENT&#EXTM3U", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + } + ] +} diff --git a/bin/frag_monitor/bak_before_20181112/frag_monitor_20180418.json b/bin/frag_monitor/bak_before_20181112/frag_monitor_20180418.json new file mode 100644 index 0000000..a1bf14d --- /dev/null +++ b/bin/frag_monitor/bak_before_20181112/frag_monitor_20180418.json @@ -0,0 +1,396 @@ +{ + "compile_table": "FRAG_MONITOR_CONFIG_FULL", + "group_table": "FRAG_MONITOR_GROUP", + "rules": + [ + { + "compile_id": 11, + "service": 3122, + "action": 0, + "do_blacklist": 166, + "do_log": 2, + "effective_range": 0, + "user_region": "iqiyi_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "iqiyi_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "video&f4v&range", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 12, + "service": 3122, + "action": 2, + "do_blacklist": 166, + "do_log": 2, + "effective_range": 0, + "user_region": "iqiyi_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "iqiyi_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_SERVER", + "keywords": "QWS", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } , + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "application/octet-stream", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 7, + "service": 2222, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "tudou_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".ts&ts_start&ts_end&ts_seg_no", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 8, + "service": 2222, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "tudou_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_SERVER", + "keywords": "YOUKU.BJ.FBN", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 9, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "tudou_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "/playlist/m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 10, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "tudou_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONTENT", + "keywords": "#EXTM3U&#EXTINF&ts&start&end", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 1, + "service": 1122, + "action": 0, + "do_blacklist": 161, + "do_log": 2, + "effective_range": 0, + "user_region": "osmf_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "Seg&Frag", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 2, + "service": 1122, + "action": 2, + "do_blacklist": 161, + "do_log": 2, + "effective_range": 0, + "user_region": "osmf_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "f4f", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + + { + "compile_id": 3, + "service": 2122, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "hls_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".ts", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 4, + "service": 2122, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "hls_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "application/x-transportstream", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "video/mp2t", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "video/x-flv", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 5, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "hls_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 6, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "hls_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_s2c_1", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "application/vnd.apple.mpegurl", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONTENT", + "keywords": "#EXTM3U", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + } + ] +} + + + + diff --git a/bin/frag_monitor/bak_before_20181112/frag_monitor_20180511.json b/bin/frag_monitor/bak_before_20181112/frag_monitor_20180511.json new file mode 100644 index 0000000..ecd8ba0 --- /dev/null +++ b/bin/frag_monitor/bak_before_20181112/frag_monitor_20180511.json @@ -0,0 +1,385 @@ +{ + "compile_table": "FRAG_MONITOR_CONFIG_FULL", + "group_table": "FRAG_MONITOR_GROUP", + "rules": + [ + { + "compile_id": 11, + "service": 3122, + "action": 0, + "do_blacklist": 166, + "do_log": 2, + "effective_range": 0, + "user_region": "iqiyi_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "iqiyi_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "video&f4v&range", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 12, + "service": 3122, + "action": 2, + "do_blacklist": 167, + "do_log": 2, + "effective_range": 0, + "user_region": "iqiyi_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "iqiyi_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "application/octet-stream", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 7, + "service": 2222, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "tudou_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".ts&ts_start&ts_end&ts_seg_no", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 8, + "service": 2222, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "tudou_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_SERVER", + "keywords": "YOUKU.BJ.FBN", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 9, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "tudou_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "/playlist/m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 10, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "tudou_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONTENT", + "keywords": "#EXTM3U&#EXTINF&ts&start&end", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 1, + "service": 1122, + "action": 0, + "do_blacklist": 161, + "do_log": 2, + "effective_range": 0, + "user_region": "osmf_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "Seg&Frag", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 2, + "service": 1122, + "action": 2, + "do_blacklist": 161, + "do_log": 2, + "effective_range": 0, + "user_region": "osmf_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "f4f", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + + { + "compile_id": 3, + "service": 2122, + "action": 0, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "hls_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".ts", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 4, + "service": 2122, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "hls_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "application/x-transportstream", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "video/mp2t", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "video/x-flv", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 5, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "hls_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 6, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "hls_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_s2c_1", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "application/vnd.apple.mpegurl", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONTENT", + "keywords": "#EXTM3U", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + } + ] +} + + + + diff --git a/bin/frag_monitor/bak_before_20181112/frag_monitor_20180710bak.json b/bin/frag_monitor/bak_before_20181112/frag_monitor_20180710bak.json new file mode 100644 index 0000000..dbf7d83 --- /dev/null +++ b/bin/frag_monitor/bak_before_20181112/frag_monitor_20180710bak.json @@ -0,0 +1,385 @@ +{ + "compile_table": "FRAG_MONITOR_CONFIG_FULL", + "group_table": "FRAG_MONITOR_GROUP", + "rules": + [ + { + "compile_id": 11, + "service": 3122, + "action": 0, + "do_blacklist": 166, + "do_log": 1, + "effective_range": 0, + "user_region": "iqiyi_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "iqiyi_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "video&f4v&range", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 12, + "service": 3122, + "action": 2, + "do_blacklist": 167, + "do_log": 2, + "effective_range": 0, + "user_region": "iqiyi_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "iqiyi_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "application/octet-stream", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 7, + "service": 2222, + "action": 0, + "do_blacklist": 162, + "do_log": 1, + "effective_range": 0, + "user_region": "tudou_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".ts&ts_start&ts_end&ts_seg_no", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 8, + "service": 2222, + "action": 2, + "do_blacklist": 162, + "do_log": 2, + "effective_range": 0, + "user_region": "tudou_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_SERVER", + "keywords": "YOUKU.BJ.FBN", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 9, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "tudou_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "/playlist/m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + + ] + }, + { + "compile_id": 10, + "service": 2221, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "tudou_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "tudou_index_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONTENT", + "keywords": "#EXTM3U&#EXTINF&ts&start&end", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 1, + "service": 1122, + "action": 0, + "do_blacklist": 161, + "do_log": 1, + "effective_range": 0, + "user_region": "osmf_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": "Seg&Frag", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 2, + "service": 1122, + "action": 2, + "do_blacklist": 161, + "do_log": 2, + "effective_range": 0, + "user_region": "osmf_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "osmf_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "f4f", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + + { + "compile_id": 3, + "service": 2122, + "action": 0, + "do_blacklist": 162, + "do_log": 1, + "effective_range": 0, + "user_region": "hls_data_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".ts", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 4, + "service": 2122, + "action": 2, + "do_blacklist": 167, + "do_log": 2, + "effective_range": 0, + "user_region": "hls_data_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_data_s2c", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "application/x-transportstream", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "video/mp2t", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "video/x-flv", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 5, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "hls_index_c2s", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_c2s", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_MESSAGE_URL", + "keywords": ".m3u8", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + }, + { + "compile_id": 6, + "service": 2121, + "action": 1, + "do_blacklist": 162, + "do_log": 0, + "effective_range": 0, + "user_region": "hls_index_s2c", + "is_valid": "yes", + "groups": [ + { + "group_name": "hls_index_s2c_1", + "regions": [ + { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONT_TYPE", + "keywords": "application/vnd.apple.mpegurl", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + }, { + "table_name": "FRAG_MONITOR_KEYWORDS", + "table_type": "expr_plus", + "table_content": { + "district": "HTTP_CONTENT", + "keywords": "#EXTM3U", + "expr_type": "and", + "match_method": "sub", + "format": "uncase plain" + } + } + ] + } + ] + } + ] +} + + + + diff --git a/src/support/MESA_trace/src/inc/MESA_handle_logger.h b/src/support/MESA_trace/src/inc/MESA_handle_logger.h new file mode 100644 index 0000000..c615b53 --- /dev/null +++ b/src/support/MESA_trace/src/inc/MESA_handle_logger.h @@ -0,0 +1,68 @@ +#ifndef MESA_HANDLE__LOGGER_H +#define MESA_HANDLE__LOGGER_H + +/* + * runtime_log with handle, + * based on runtime_log. + * yang wei + * create time:2014-03-24 + * version:20140324 + */ + +#ifdef __cplusplus +extern "C" +{ +#endif + +#define RLOG_LV_DEBUG 10 +#define RLOG_LV_INFO 20 +#define RLOG_LV_FATAL 30 + + +#define MESA_HANDLE_RUNTIME_LOG(handle, lv, mod, fmt, args...) \ + MESA_handle_runtime_log((handle), (lv), (mod), "file %s, line %d, " fmt, \ + __FILE__, __LINE__, ##args) + +/* + * name: MESA_create_runtime_log_handle + * functionality: get runtime_log handle; + * params: + * file_path: path of log file, like "./log/runtime_log"; + * level: level of log; + * returns: + * not NULL, if succeeded; + * NULL, if file is not absolute path, or failed to create log file; + */ +void *MESA_create_runtime_log_handle(const char *file_path, int level); + +/* + * name: MESA_handle_runtime_log + * functionality: appends log message to runtime log file; + * params: + * handle:handle of runtime log, which is created by MESA_create_runtime_log_handle; + * level: log level, messages with level value smaller the global var + * "runtime_log_level" are ignored; + * module: name of loggin module; + * fmt: format string; + * returns: + * none; + */ +void MESA_handle_runtime_log(void *handle, int level, const char *module, const char *fmt, ...); + +/* + * name: MESA_destroy_runtime_log_handle + * functionality: release runtime log handle memory. + * params: + * handle: runtime log handle which is going to be released; + * returns: + * none; + */ +void MESA_destroy_runtime_log_handle(void *handle); + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/src/support/MESA_trace/src/lib/libMESA_trace.a b/src/support/MESA_trace/src/lib/libMESA_trace.a Binary files differnew file mode 100644 index 0000000..0f89b81 --- /dev/null +++ b/src/support/MESA_trace/src/lib/libMESA_trace.a diff --git a/src/support/MESA_trace/src/lib/libMESA_trace.so b/src/support/MESA_trace/src/lib/libMESA_trace.so Binary files differnew file mode 100644 index 0000000..a1aa873 --- /dev/null +++ b/src/support/MESA_trace/src/lib/libMESA_trace.so |
