Commit Graph

677 Commits

Author SHA1 Message Date
Jesús Ángel González
96407a74cf Moved generated data to optimize directory 2018-06-12 19:38:26 +02:00
Jesús Ángel González
4fde1f4b89 Fix false api validation 2018-06-12 09:52:23 +02:00
Jesús Ángel González
f8141dfb22 Added missing header 2018-06-11 14:31:50 +02:00
Jesús Ángel González
eb01738c92 Checking if GDPR is available from the Wazuh API before parsign 2018-06-08 09:38:50 +02:00
Jesús Ángel González
e31ba4ad21 Updated extensions management 2018-06-07 18:37:18 +02:00
Jesús Ángel González
c19b958ae4 Removed useless route 2018-06-07 18:37:18 +02:00
Jesús Ángel González
1929a4bf74 Clear array if we fall in catch statement 2018-06-07 18:22:15 +02:00
Jesús Ángel González
d1788d084a Replaced recursive function by loop and waiting it's completed 2018-06-07 18:22:15 +02:00
Jesús Ángel González
634ac401e4 Added pattern_name from pattern_doc to timelions raw 2018-06-06 16:03:58 +02:00
Jesús Ángel González
501521a4a6 Fix typo 2018-06-04 18:47:59 +02:00
Jesús Ángel González
27b559a028 Returning well formatted CSV from server side 2018-06-04 18:47:59 +02:00
Jesús Ángel González
0552cf2528 Added search bar content to the report 2018-06-01 15:16:02 +02:00
Jesús Ángel González
e0c625e95b Hide reporting progress message once it fails 2018-06-01 15:15:22 +02:00
Jesús Ángel González
73ff47eb72 Delete corrupted PDF generated 2018-06-01 15:15:22 +02:00
Jesús Ángel González
c77de4a719 Added message for reporting module error 2018-06-01 15:15:22 +02:00
Jesús Ángel González
1c42ab73c1 Force to check directory before fetch reports 2018-06-01 11:42:03 +02:00
Jesús Ángel
dd81eab2d2
Merge branch '3.2' into 3.2-issue-422 2018-06-01 09:51:24 +02:00
Jesús Ángel González
30f4c02715 Added comments 2018-05-31 21:21:24 +02:00
Jesús Ángel González
cc70a9e08b Parsing API id too 2018-05-31 21:21:24 +02:00
Jesús Ángel González
1458b35bf5 Added new GET route to check
total RAM
2018-05-31 21:20:28 +02:00
Jesús Ángel González
5caeff0f25 Added two missing fields. Non searchable 2018-05-31 21:18:06 +02:00
Jesús Ángel González
bda9310e48 Reduced time reading files, better sort algorithm if big array is given 2018-05-30 18:17:07 +02:00
Jesús Ángel González
f3a43465d8 Changed title from all agents vis 2018-05-30 18:16:16 +02:00
Jesús Ángel González
56b502d2fd Description. Icons 2018-05-30 16:30:22 +02:00
Jesús Ángel González
2cdb40d256 Modified all overview visualizations title 2018-05-30 16:15:05 +02:00
Jesús Ángel González
46545edd5e Added description file 2018-05-30 16:14:39 +02:00
Jesús Ángel González
7e17e370cf Better format for PDF generated 2018-05-30 16:14:00 +02:00
Jesús Ángel González
524f0b327f Importing fs. Fix image width. 2018-05-30 11:00:06 +02:00
Jesús Ángel González
7f45af1b0b Added header to raw pdfkit content 2018-05-29 17:43:04 +02:00
Jesús Ángel González
e0e2692ef9 Added reporting server side controllers 2018-05-29 13:40:37 +02:00
Jesús Ángel González
b025250e32 Added reporting routes 2018-05-29 13:40:25 +02:00
Jesús Ángel González
e393b37a72 Fix API password replacement 2018-05-25 12:57:36 +02:00
Jesús Ángel González
dfea6c7094 Added labels to timelions 2018-05-24 18:12:53 +02:00
Jesús Ángel González
6c1a1622e6 Added master node name while building cluster vis. Added more comments 2018-05-24 18:12:53 +02:00
Jesús Ángel González
e7c4c885c2 Added new visualization for cluster overview section 2018-05-24 18:12:53 +02:00
Jesús Ángel González
8b596c68c8 Added new cluster visualization 2018-05-24 18:12:53 +02:00
Jesús Ángel González
c8e14eda9c Using array of nodes to build timelions 2018-05-24 18:12:53 +02:00
Jesús Ángel González
73fe30c3d1 Added specific route to create raw for cluster timelions, split by nodes 2018-05-24 18:12:53 +02:00
Jesús Ángel González
f05c786401 Added missing copyright 2018-05-24 18:12:53 +02:00
Jesús Ángel González
2e6e32c19b Importing timelions visualization for cluster monitoring 2018-05-24 18:12:53 +02:00
Jesús Ángel González
35d071ed16 Allowing to show monitoring data without ingesting information 2018-05-21 11:32:52 +02:00
Jesús Ángel González
1574297297 Removed console.log statements 2018-05-18 13:47:10 +02:00
Jesús Ángel González
96142cdfea Prevents from get the agent key 2018-05-18 13:33:47 +02:00
Jesús Ángel González
2c8a39e4c6 Fix gdpr 2018-05-18 13:29:11 +02:00
Jesús Ángel González
782b205a08 Added more options to wrong url parameter checking 2018-05-17 09:41:25 +02:00
Jesús Ángel González
b331932a7d Removed useless Elasticsearch request 2018-05-16 15:53:12 +02:00
Jesús Ángel González
6e3e75a49f Fix typo 2018-05-16 11:35:34 +02:00
Jesús Ángel González
95e809d023 Added check for new extensions 2018-05-16 11:35:34 +02:00
Juanjo Jiménez
36a7a00a3d Modified some vis label rotations 2018-05-15 18:49:22 +02:00
Juanjo Jiménez
2503626443 Modified some GDPR visualizations 2018-05-15 18:40:02 +02:00
Jesús Ángel González
cdfb1e4a0e Modified error codes for GDPR 2018-05-15 17:42:04 +02:00
Juanjo Jiménez
f32ea86f23 Removed GDPR requirement from file 2018-05-15 14:44:58 +02:00
Juanjo Jiménez
5b011ae718 Added GPG13 to known fields file 2018-05-15 09:26:52 +02:00
Juanjo Jiménez
2fb8fb2696 Added GDPR to app server (in progress) 2018-05-14 12:56:27 +02:00
Jesús Ángel González
b34b397128 Restricting API request method to GET by default for dev tool feature 2018-05-11 10:39:37 +02:00
Jesús Ángel González
3de760668f Added more validation checks 2018-05-10 11:57:31 +02:00
Jesús Ángel González
4768958c6d Added missing copyright comment 2018-05-10 11:57:31 +02:00
Jesús Ángel González
d10dd2051e Module to transform seconds interval to cron readable format 2018-05-10 11:57:31 +02:00
Jesús Ángel González
1e88da7ce3 Parsing cron frequency from seconds, using it for monitoring 2018-05-10 11:57:31 +02:00
Jesús Ángel González
07c934bc9b Parsing and using enabled and frequency for wazuh-monitoring indices 2018-05-10 11:57:31 +02:00
Jesús Ángel González
2b5b317f5a Using module to fetch the configuration file 2018-05-10 11:57:31 +02:00
Jesús Ángel González
959f8ccb59 Added new module to fetch the configuration file 2018-05-10 11:57:31 +02:00
Javier Castro
0333f50bbb
Merge branch '3.2' into 3.2-error-hardening 2018-05-07 11:53:10 +02:00
Javier Castro
d780082803
Merge pull request #431 from wazuh/3.2-csv-export
CSV exporting
2018-05-07 11:42:04 +02:00
Juanjo Jiménez
acdac15904 Fix OSCAP visualization when showing long agent names 2018-05-07 11:40:34 +02:00
Jesús Ángel González
f0469556d8 Applying facade pattern 2018-05-04 12:29:07 +02:00
Jesús Ángel González
7c2bb41d1b Continue managing errors in a better way (in progress) 2018-05-04 11:07:57 +02:00
Jesús Ángel González
1aa5b609d5 Fix typo 2018-05-03 13:45:59 +02:00
Jesús Ángel González
a9e765d853 Improve new generic error response constructor (in progress) 2018-04-30 18:17:44 +02:00
Jesús Ángel González
7c1e2092bb Removed useless logic for rules vis since they are no longer avalaible 2018-04-30 17:44:22 +02:00
Jesús Ángel González
ebe0342770 Not exporting ruleset visualizations any more 2018-04-30 17:43:30 +02:00
Jesús Ángel González
42ffa7e711 Deleted ruleset visualizations 2018-04-30 17:43:02 +02:00
Jesús Ángel González
f3fb763e7c Sanitized error responses 2018-04-30 17:32:55 +02:00
Jesús Ángel González
925e5550f2 Deleted deprecated methods 2018-04-30 17:32:33 +02:00
Jesús Ángel González
c6404a00b6 Sanitized wazuh-api error responses 2018-04-30 17:16:24 +02:00
Jesús Ángel González
6c07969bef Removed unused route and its own function 2018-04-30 16:24:19 +02:00
Jesús Ángel González
31f472028d Sanitized error responses from wazuh-api-elastic routes 2018-04-30 16:23:49 +02:00
Jesús Ángel González
796572beb0 Added new generic error response 2018-04-30 16:22:56 +02:00
Jesús Ángel González
8f2c371312 Removed unused route and its own function 2018-04-30 15:27:07 +02:00
Jesús Ángel González
fd1e9e91f6 Fix comment from routes 2018-04-30 13:30:09 +02:00
Jesús Ángel González
2ec58d4352 Parse filters and sanitize them 2018-04-30 13:19:50 +02:00
Jesús Ángel González
d1c9757ca4 Merge branch '3.2' into 3.2-csv-export 2018-04-30 11:25:13 +02:00
Jesús Ángel González
ef318b8448 Declare new global variable as flag for x-pack index pattern filtering 2018-04-26 17:07:46 +02:00
Jesús Ángel González
aa7b25a0ae Added new check for index pattern filtering 2018-04-26 17:07:46 +02:00
Jesús Ángel González
ffd9d06bcd Check if indeed the user has no privileges to use a specific pattern 2018-04-26 17:07:22 +02:00
Jesús Ángel González
e614d74965 Check template for wazuh-agent before create monitoring indices 2018-04-26 17:06:41 +02:00
Jesús Ángel González
499893f6d2 Fetch the template by name 2018-04-26 17:06:41 +02:00
Jesús Ángel González
e41553f84c Fix some log messages 2018-04-26 17:06:41 +02:00
Jesús Ángel González
838343db8c Example CSV generated successfully (in progress) 2018-04-26 13:51:49 +02:00
Jesús Ángel González
dc9394b245 Added missing this 2018-04-26 09:18:19 +02:00
Jesús Ángel González
d19188b003 Added route to fetch data from the Wazuh api on csv format 2018-04-25 17:27:49 +02:00
Jesús Ángel González
ac09f03a93 Replaced needle request to Elastic by callWithInteralUser 2018-04-24 17:21:31 +02:00
Jesús Ángel González
d75f5058ca Fix x-pack bug when there is no security enabled 2018-04-24 11:58:30 +02:00
Jesús Ángel González
fe2fa0be9e Removed deprecated method, also adapted to non-visTimestamp new logic 2018-04-23 13:07:02 +02:00
Jesús Ángel González
26b952c833 Import/Export raw visualizations 2018-04-23 12:31:42 +02:00
Jesús Ángel González
ea870d9089 Optimized createVis and buildVisualizations 2018-04-23 12:31:28 +02:00
Jesús Ángel González
fbd82cf17c Added missing visualizations after copyright branch merging conflicts 2018-04-23 11:18:02 +02:00
Jesús Ángel González
7b76cb7067 Removed unused route 2018-04-23 11:17:07 +02:00
Jesús Ángel González
03747f9bf9 Merge remote-tracking branch 'origin/3.2-add-copyright' into 3.2-raw-vis 2018-04-23 10:53:53 +02:00
Jesús Ángel González
1b694aa122 Merge branch '3.2' into 3.2-raw-vis 2018-04-23 10:23:02 +02:00
Juanjo Jiménez
a9c247347b Added copyright for visualizations folder 2018-04-22 21:15:41 +02:00
Juanjo Jiménez
d3e2c2fc01 Added copyright for server and util folders 2018-04-22 21:10:29 +02:00
Jesús Ángel González
5a1e212ab6 Continue refactore on the whole app 2018-04-22 15:41:10 +02:00
Jesús Ángel González
2f8277b000 Ending migration to import/export paradigm 2018-04-22 11:31:57 +02:00
Jesús Ángel González
c9fdd38baa Migrating to import/export paradigm (in progress 2) 2018-04-21 13:31:47 +02:00
Jesús Ángel González
9bcfd8f445 Migrating to import/export paradigm (in progress) 2018-04-21 12:09:55 +02:00
Jesús Ángel González
9f90aae5ba Fix error handling whenever Wazuh API is unreachable 2018-04-21 11:30:30 +02:00
Jesús Ángel González
cbdcc53bb4 Fix error handling whenever Wazuh API is unreachable 2018-04-20 14:10:46 +02:00
Jesús Ángel González
9b909a2ad2 Fully removed stdout 2018-04-18 18:45:10 +02:00
Jesús Ángel González
1cd9423caa Removed breaking server.log statements 2018-04-18 18:45:10 +02:00
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