Compare commits
10 Commits
97b550506a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d64bc16a8 | ||
|
|
890cf2c3e6 | ||
|
|
d06d0a32bf | ||
|
|
84c045f6c8 | ||
|
|
61ef23cc91 | ||
|
|
abcf426b09 | ||
|
|
02d5edd623 | ||
|
|
851d7bca1a | ||
|
|
0bf3b6c013 | ||
|
|
12a77dbea6 |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -78,6 +78,7 @@ typings/
|
|||||||
|
|
||||||
# DynamoDB Local files
|
# DynamoDB Local files
|
||||||
.dynamodb/
|
.dynamodb/
|
||||||
casRpsLogExtractor/casRpsLogExtractor.config.json
|
|
||||||
casRpsLogExtractor/casRpsLogExtractor.maxPKey.dat
|
DBExtractor/DBExtractor.config.json
|
||||||
|
DBExtractor/DBExtractor.maxPKey.dat
|
||||||
diskUsageMonitor/diskUsageMonitor.config.json
|
diskUsageMonitor/diskUsageMonitor.config.json
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"dbDriver":"mssql", "dbDriverComment":"either mssql (user/password) or mssql/msnodesqlv8 (trustedConnection)",
|
|
||||||
"processingType": "casrpslog",
|
|
||||||
"sourceTag": "CCERpsLog",
|
|
||||||
"maxResultsPerMessage":100,
|
|
||||||
"statements":{
|
|
||||||
"poller":"'select top ' + config.maxResultsPerMessage + ' * from rpslog where pkey > \\'' + maxPKey + '\\' order by pkey'"
|
|
||||||
},
|
|
||||||
"serverURI": "http://localhost:2222",
|
|
||||||
"pollIntervalIdle": 10000,
|
|
||||||
"sqlConfig": {
|
|
||||||
"user": "casdbuser",
|
|
||||||
"password": "4KcLao2016!",
|
|
||||||
"server": "ustww2063\\CCE",
|
|
||||||
"database": "CAS110",
|
|
||||||
"port": 1433
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -5,9 +5,10 @@
|
|||||||
"serverURI": "http://localhost:2222",
|
"serverURI": "http://localhost:2222",
|
||||||
"maxResultsPerMessage":100,
|
"maxResultsPerMessage":100,
|
||||||
"statements":{
|
"statements":{
|
||||||
"poller":"'select top ' + config.maxResultsPerMessage + ' * from rpslog where pkey > \\'' + maxPKey + '\\' order by pkey'"
|
"poller":"'select top ' + config.maxResultsPerMessage + ' * from rpslog with (nolock) where pkey > \\'' + maxPKey + '\\' order by pkey'"
|
||||||
},
|
},
|
||||||
"pollIntervalIdle": 10000,
|
"pollIntervalIdle": 10000,
|
||||||
|
"pollMode": false,
|
||||||
"UP_sqlConfig": {
|
"UP_sqlConfig": {
|
||||||
"user": "casdbuser",
|
"user": "casdbuser",
|
||||||
"password": "4KcLao2016!",
|
"password": "4KcLao2016!",
|
||||||
|
|||||||
@@ -15,12 +15,12 @@ const logger = winston.createLogger({
|
|||||||
),
|
),
|
||||||
transports: [
|
transports: [
|
||||||
new winston.transports.Console(),
|
new winston.transports.Console(),
|
||||||
new winston.transports.File({ filename: './log/DBExtractorError.log', level: 'error' }),
|
new winston.transports.File({ filename: '../log/DBExtractorError.log', level: 'error' }),
|
||||||
new winston.transports.File({ filename: './log/Combined.log' })
|
new winston.transports.File({ filename: '../log/Combined.log' })
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`DBExtractor Copyright (C) 2019 j.tretter@gmail.com
|
console.log(`DBExtractor - by j.tretter@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -99,8 +99,13 @@ try {
|
|||||||
});
|
});
|
||||||
process.stdout.write(">" + allRows.length + ">");
|
process.stdout.write(">" + allRows.length + ">");
|
||||||
} else {
|
} else {
|
||||||
|
if (config.pollMode) {
|
||||||
theInterval = setInterval(runNextPoll, config.pollIntervalIdle);
|
theInterval = setInterval(runNextPoll, config.pollIntervalIdle);
|
||||||
process.stdout.write(".");
|
process.stdout.write(".");
|
||||||
|
} else {
|
||||||
|
sql.close();
|
||||||
|
return(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
allRows=[];
|
allRows=[];
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
0010000000a7l7bx
|
|
||||||
@@ -20,7 +20,7 @@ const logger = winston.createLogger({
|
|||||||
|
|
||||||
const processingType = "diskusage";
|
const processingType = "diskusage";
|
||||||
|
|
||||||
console.log(`diskUsageMonitor Copyright (C) 2019 j.tretter@gmail.com
|
console.log(`diskUsageMonitor - by j.tretter@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
20
getApplicationMessages.sql
Normal file
20
getApplicationMessages.sql
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
select '{"Logic":"-", "Field":"LogText", "Comp":"~", "Value":"/^' +
|
||||||
|
replace(replace(replace(replace(replace(replace(replace(TXT ,'%1','.*'),'%2','.*'),'%3','.*'),'%4','.*'),'%5','.*'),'%6','.*'),'%7','.*')
|
||||||
|
+ '/"},' from (
|
||||||
|
select replace(replace(replace(replace(replace(replace(TXT,'"','\"'),'(','\\('),')','\\)'),'.','\\.'),'*','\\*'),'+','\\+') "TXT" from (
|
||||||
|
select CASE WHEN CHARINDEX(char(10),TXT)=0 THEN txt
|
||||||
|
ELSE SUBSTRING(TXT,0,CHARINDEX(char(10),TXT)-1)
|
||||||
|
END "TXT" from (
|
||||||
|
select distinct convert(nvarchar(max),text) TXT
|
||||||
|
from RpsMessageText
|
||||||
|
where status != 'd'
|
||||||
|
and language != 'de'
|
||||||
|
and rpsmessagepkey not in (select pkey from rpsmessage where CodePrefix in( 'ANA','ASP','BWI','GRI','PDA','STR','RPS','TPO','SVC','PLN') or id like '%Char' )
|
||||||
|
) a
|
||||||
|
where txt not like 'Validation notification%'
|
||||||
|
and txt not like 'Validiation notification%'
|
||||||
|
and txt not like 'Notificação de validação%'
|
||||||
|
and txt not like '¡Alerta de Validación!%'
|
||||||
|
) b
|
||||||
|
) c
|
||||||
|
Where len(convert(varchar(max),TXT)) > 10 /* anything shorter than 10 will be some sort of label or so.*/
|
||||||
Binary file not shown.
@@ -22,7 +22,7 @@ const logger = winston.createLogger({
|
|||||||
|
|
||||||
|
|
||||||
const ruleEngine = new RuleEngine("*");
|
const ruleEngine = new RuleEngine("*");
|
||||||
console.log(`logAggregator Service Copyright (C) 2019 j.tretter@gmail.com
|
console.log(`logAggregator Service - by j.tretter@gmail.com
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
Reference in New Issue
Block a user