Commit Graph

467 Commits

Author SHA1 Message Date
Jesús Ángel González
ce17d2c1c9 Removed breaking server.log statements 2018-04-18 18:09:25 +02:00
Jesús Ángel González
608d98b253 Moving to import/export paradigm 2018-04-18 18:07:44 +02:00
Jesús Ángel González
273e44c137 Removed vis-deletion-cron since it's no longer needed 2018-04-18 17:26:35 +02:00
Jesús Ángel González
8f3b007e80 New way to generate alerts visualizations 2018-04-18 13:38:08 +02:00
Jesús Ángel González
2ed1dcace4 Removed two console.log statements 2018-04-18 13:37:51 +02:00
Jesús Ángel González
3cc877c95d Fix visualizations fields for the agent.name 2018-04-17 15:44:27 +02:00
Jesús Ángel González
cfab7d019d Removed redundant if statement 2018-04-17 13:08:00 +02:00
Jesús Ángel González
65ed3fb562 Adapted create-vis function to fit cluster.name field on Agents Status visualization 2018-04-17 13:08:00 +02:00
Jesús Ángel González
2814daf4cf Fix condition to insert cluster.name on monitoring 2018-04-17 13:08:00 +02:00
Jesús Ángel González
5763e3abab Adding cluster object to documents from monitoring index. closes #375 2018-04-17 13:08:00 +02:00
Jesús Ángel González
89fbdb6163 Added cluster object to monitoring template 2018-04-17 13:08:00 +02:00
Jesús Ángel González
ac0183786d Only log if not empty results 2018-04-16 18:24:37 +02:00
Jesús Ángel González
02fcce3eeb Giving less aggressive message when checking .wazuh-version index 2018-04-16 17:39:43 +02:00
Jesús Ángel González
86287dc8ad Skipping old wazuh-monitoring pattern for refreshing fields and declaring missing id for reach api function 2018-04-16 17:39:43 +02:00
Jesús Ángel González
1ccbd69c41 Implemented auto-refresh fields whenever the selected pattern changes 2018-04-13 18:00:13 +02:00
Jesús Ángel González
d4ba9fb2c2 Respect Kibana custom index from kibana.yml file 2018-04-13 17:26:41 +02:00
Jesús Ángel González
ba621bec3b Removed unused parameter 2018-04-12 16:42:44 +02:00
Jesús Ángel González
eda1ee1a5b Change log level from error to info creating wazuh-monitoring pattern 2018-04-12 16:33:00 +02:00
Jesús Ángel González
8b7efb966b The reachAPI function has been redefined 2018-04-12 16:22:34 +02:00
Jesús Ángel González
9956de43ea Redefined checkKibanaStatus function. Added better internal logs 2018-04-12 15:50:04 +02:00
Jesús Ángel González
4d883e6903 Better cron task, redefined 2018-04-12 15:49:29 +02:00
Jesús Ángel González
db8a2436c1 Fix typo 2018-04-12 11:17:04 +02:00
Jesús Ángel González
7417cfdde8 Fix monitoring error message 2018-04-11 16:41:14 +02:00
Jesús Ángel González
1661ba6b8c Fix cron frequency 2018-04-11 15:55:09 +02:00
Jesús Ángel González
4581664ee1 Added new bool parameter and new Elastic query to deletion method 2018-04-11 15:51:33 +02:00
Jesús Ángel González
0bd8699dab New cron job to delete any visualization which was not removed properly 2018-04-11 15:51:12 +02:00
Jesús Ángel González
6256479934 Fix wrong vis deletion function 2018-04-11 13:54:34 +02:00
Jesús Ángel González
51f797025e Prevents fail on some scenarios with empty index pattern list 2018-04-11 13:31:46 +02:00
Jesús Ángel González
931348f1f7 Id could be title and/or id 2018-04-11 12:45:40 +02:00
Jesús Ángel González
a06e8e9e78 Fix replicas/shards configuration on initialize 2018-04-11 12:04:01 +02:00
Jesús Ángel González
d2bcd2f963 Fix vis deletion whenever no results found 2018-04-11 11:49:41 +02:00
Jesús Ángel González
1b32be302e Fix common visualizations Agents vs Overview, now each one has its own visualizations 2018-04-11 11:02:10 +02:00
Jesús Ángel González
6e5b0af880 Removed unused variable 2018-04-11 10:37:15 +02:00
Jesús Ángel González
96ea2220d9 Split on controller, routes. Implemented three new classes for the controllers 2018-04-11 09:58:23 +02:00
Jesús Ángel González
648498ada2 Fix typo saving api 2018-04-10 17:25:23 +02:00
Jesús Ángel González
4a33962f5f Removed the temporary hack to test it more in deep 2018-04-10 17:21:56 +02:00
Jesús Ángel González
dbe1c8529e Added reindex methods to the Elastic wrapper 2018-04-10 17:20:16 +02:00
Jesús Ángel González
44c34d6e44 Fully delete elasticRequest client from initialize module 2018-04-10 17:19:44 +02:00
Jesús Ángel González
308733af1f Cleaning the elasticRequest calls 2018-04-10 17:11:51 +02:00
Jesús Ángel González
6b07302bea Added few more methods to the Elastic wrapper 2018-04-10 17:11:42 +02:00
Jesús Ángel González
dbad687254 Fully deleted elasticRequest client from monitoring module 2018-04-10 17:11:29 +02:00
Jesús Ángel González
76783bfdaa Fix typo 2018-04-10 16:39:20 +02:00
Jesús Ángel González
b001e0e402 Added more methods to the Elastic wrapper (in progress) 2018-04-10 16:39:03 +02:00
Jesús Ángel González
fc01ee580b Fully deleted elasticRequest client from this module 2018-04-10 16:38:47 +02:00
Jesús Ángel González
64affbd1c0 Fix typo 2018-04-10 16:26:17 +02:00
Jesús Ángel González
950c1734c5 Added .wazuh index wrappers 2018-04-10 16:25:58 +02:00
Jesús Ángel González
c1f3165138 Fully deleted elasticRequest client from this module 2018-04-10 16:25:47 +02:00
Jesús Ángel González
98e56653cf Adapting to the Elastic wrapper (in progress) 2018-04-10 15:56:52 +02:00
Jesús Ángel González
703844a835 Using the Elastic Wrapper here too 2018-04-10 15:56:33 +02:00
Jesús Ángel González
c507f18e48 More methods added to the Elastic wrapper (in progress) 2018-04-10 15:42:03 +02:00
Jesús Ángel González
f8a807b0d7 Adapting to the Elastic wrapper 2018-04-10 15:31:02 +02:00
Jesús Ángel González
77feafda98 Added more methods to the Elastic wrapper 2018-04-10 15:30:51 +02:00
Jesús Ángel González
e0ca699296 Elastic wrapper just started 2018-04-10 15:18:48 +02:00
Jesús Ángel González
a81ed136dd Moved if statement to the right place 2018-04-10 15:11:06 +02:00
Jesús Ángel González
17d1e6db31 Removed unused variable 2018-04-10 15:09:08 +02:00
Jesús Ángel González
c7467e62c9 Added missing index pattern 2018-04-10 13:16:06 +02:00
Jesús Ángel González
d5d3c1d9a7 Fixes on init function, removed configureKibana function 2018-04-10 12:56:18 +02:00
Jesús Ángel González
118ee563b9 Fixed initialize process, adapted to live visualizations, new option added to config file 2018-04-10 12:23:07 +02:00
Jesús Ángel González
0d826acc05 Removed redundant require statement 2018-04-10 11:41:23 +02:00
Jesús Ángel González
638298993e Duplicated vuln vis for agents 2018-04-10 11:41:01 +02:00
Jesús Ángel González
dcb60ce560 Removed getCurrentlyAppliedPattern, using get-list route instead 2018-04-10 09:46:47 +02:00
Jesús Ángel González
35ab7da6fa Changed some log messages and function comments 2018-04-10 09:46:47 +02:00
Jesús Ángel González
5a2cfe36a0 Adapted to fetch ruleset visualizations too 2018-04-10 09:46:47 +02:00
Jesús Ángel González
bd2987fe97 Split visualizations for manager ruleset 2018-04-10 09:46:47 +02:00
Jesús Ángel González
d907b9e242 Removed unused reference 2018-04-10 09:46:47 +02:00
Jesús Ángel González
0648d07070 Finally two visualizations objects were removed 2018-04-10 09:46:47 +02:00
Jesús Ángel González
c507aff66c Added more visualizations to their own file (in progress) 2018-04-10 09:46:47 +02:00
Jesús Ángel González
963dd8f425 Only ruleset visualizations are still alive 2018-04-10 09:46:47 +02:00
Jesús Ángel González
a628e0e3f1 Remove update app objects from wazuh-elastic and its route, also temporary hack to current pattern 2018-04-10 09:46:47 +02:00
Jesús Ángel González
9f1f54d5cb Removed importing visualization from monitoring 2018-04-10 09:46:47 +02:00
Jesús Ángel González
3f620a50a9 Removed importing visualizations process from initialize 2018-04-10 09:46:47 +02:00
havidarou
c8070b95d1 Simplify dynamic visualizations loading schema 2018-04-10 09:46:47 +02:00
Jesús Ángel González
889312c937 Started agents split process 2018-04-10 09:46:47 +02:00
Jesús Ángel González
4435123ecd Improved deletion function, now it uses only one query to delete all 2018-04-10 09:46:47 +02:00
Jesús Ángel González
88a0524ac4 Temporary patch to continue developing 2018-04-10 09:46:47 +02:00
Jesús Ángel González
3b8ed0ce22 Fix typo 2018-04-10 09:46:47 +02:00
Jesús Ángel González
a50fcb3918 First approach of createVis and deleteVis functions 2018-04-10 09:46:47 +02:00
Jesús Ángel González
7f1aecb131 Split visualizations in multiple common js modules 2018-04-10 09:46:47 +02:00
Jesús Ángel González
9f25a6de48 Created empty files for visualizations 2018-04-10 09:46:47 +02:00
havidarou
2cbfa5851a Dynamic visualizations seed 2018-04-10 09:46:47 +02:00
Jesús Ángel González
cf69fa0da0 Reduced to info level the message related to "Elasticsearch is ready" 2018-04-04 11:13:34 +02:00
Jesús Ángel González
b8f8f95f26 Prevents auto-restart due to logs on development mode 2018-04-04 11:13:04 +02:00
Jesús Ángel González
7bb80214d8 Added fields for wazuh-monitoring when creating the index pattern 2018-04-02 16:34:20 +02:00
Jesús Ángel González
b0cc29b106 Split and refactor for init() function on initialize time (in progress) 2018-04-02 15:44:49 +02:00
Jesús Ángel González
eb4d0b85a7 Moved server.log statement to the right place 2018-04-02 15:05:15 +02:00
Jesús Ángel González
3957fdc150 Fix typo con getConfig function 2018-04-02 13:02:25 +02:00
Jesús Ángel González
ae56eb9422 Replaced internal user by request user to save/update API settings 2018-04-02 11:55:22 +02:00
Jesús Ángel González
dc0d1292ac Refactor initialize (in progress) 2018-04-02 11:43:02 +02:00
Jesús Ángel González
b0306f6479 Fix the checking pattern function 2018-03-26 10:56:50 +02:00
Jesús Ángel González
a5e6f29c27 Removed direct request to .security-6 index 2018-03-26 10:09:48 +02:00
Jesús Ángel González
b4e4450e72 Increased query size, changed message whenever index pattern not found 2018-03-24 12:04:51 +01:00
Jesús Ángel González
105bc3dad3 Fix typo 2018-03-24 12:04:30 +01:00
Jesús Ángel González
afe57d58bf Remove clear password on checkStoredAPI 2018-03-24 12:04:20 +01:00
Jesús Ángel González
bc2e424b0c Merge branch '3.2' into 3.2-xpack-rbac 2018-03-24 11:44:30 +01:00
Jesús Ángel González
2cad620599 Fix custom index pattern create function 2018-03-23 14:45:47 +01:00
Jesús Ángel González
447b41e5fe Added 3.x to monitoring template 2018-03-23 14:17:31 +01:00
Jesús Ángel González
88a290d243 Using config.yml pattern whenever custom id is found 2018-03-23 13:51:30 +01:00
Jesús Ángel González
facffb3821 Whole refactor 2018-03-22 17:10:33 +01:00
Jesús Ángel González
0bd24c19c3 Promisified the whole monitoring module 2018-03-22 17:10:18 +01:00
Jesús Ángel González
c076a43768 Deleted json extension 2018-03-22 16:01:35 +01:00