mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 10:18:57 +00:00
Skipping old wazuh-monitoring pattern for refreshing fields and declaring missing id for reach api function
This commit is contained in:
parent
1ae0da99fe
commit
86287dc8ad
@ -121,6 +121,7 @@ module.exports = (server, options) => {
|
||||
}
|
||||
|
||||
for(const item of list){
|
||||
if(item.title.includes('wazuh-monitoring-*') || item.id.includes('wazuh-monitoring-*')) continue;
|
||||
log('[initialize][checkKnownFields]', `Refreshing known fields for "index-pattern:${item.title}"`,'info')
|
||||
server.log([blueWazuh, 'initialize', 'info'], `Refreshing known fields for "index-pattern:${item.title}"`);
|
||||
await wzWrapper.updateIndexPatternKnownFields('index-pattern:' + item.id);
|
||||
@ -534,8 +535,9 @@ module.exports = (server, options) => {
|
||||
|
||||
const reachAPI = async config => {
|
||||
try {
|
||||
const id = config._id;
|
||||
config = config._source;
|
||||
|
||||
config.id = id;
|
||||
log('[initialize][reachAPI]', `Reaching ${config.manager}`,'info')
|
||||
server.log([blueWazuh, 'reindex', 'info'], `Reaching ${config.manager}`);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user