Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splunk app v2.2.0-0 #42

Merged
merged 96 commits into from
Apr 23, 2018
Merged
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
7020ae0
Adding some Wazuh styles
manuasir Apr 12, 2018
f6a6b91
Changing names starting with uppercase
manuasir Apr 12, 2018
53bc1b7
Showing up files content in JSON pretty format closes #22
manuasir Apr 12, 2018
58f45c9
Updating changelog with the last fix
manuasir Apr 12, 2018
7108a83
Merge pull request #28 from wazuh/3.2-fix-file-content
manuasir Apr 12, 2018
08d45dd
Creating new tab structure and adding to tabs menu
manuasir Apr 12, 2018
29ec3fc
New endpoints for manager configuration
manuasir Apr 12, 2018
b269980
Adding new Wazuh styles for manager configuration tab
manuasir Apr 12, 2018
7041e2b
Starting with manager configuration tab design
manuasir Apr 12, 2018
cd9af38
Refactoring frontend logic for manager configuration tab
manuasir Apr 12, 2018
283d380
Refactoring all front-end logic
manuasir Apr 12, 2018
5118362
Merge pull request #29 from wazuh/3.2-front-refactor
manuasir Apr 12, 2018
302fa10
Added Manager configuration front-end logic
manuasir Apr 13, 2018
ab8dee4
Adding dynamic views to Manager Configuration tab
manuasir Apr 13, 2018
e1b2c87
Added new styles
manuasir Apr 13, 2018
8282cc2
Modifying tab styles
manuasir Apr 13, 2018
abe93d1
Completing dynamic views and logic of Manager configuration
manuasir Apr 13, 2018
848aa0f
Providing styles to dynamic views titles
manuasir Apr 13, 2018
fbb3c33
Changing order of Status field in agent summary tab closes #30
manuasir Apr 13, 2018
0edd2a7
Avoiding using uppercase twice in the same text closes #31
manuasir Apr 13, 2018
e4b2e57
Adding some style to manager configuration tab
manuasir Apr 13, 2018
f2237cb
Merge pull request #32 from wazuh/3.2-dev-manager-configuration
manuasir Apr 13, 2018
f9d13d0
Refactoring view controllers
manuasir Apr 15, 2018
e8b86a3
Making the DataTables works for first time
manuasir Apr 16, 2018
17405a0
Working approach
manuasir Apr 16, 2018
b96957f
Changing backend endpoints so that it's possible to paginate requests
manuasir Apr 16, 2018
a478a17
Getting data from redesigned endpoint
manuasir Apr 16, 2018
78e7540
Making the dynamic tables pagination works
manuasir Apr 17, 2018
a7a2dff
Making the tables be able to filter properly
manuasir Apr 17, 2018
b00819e
Calling super method in rest class
manuasir Apr 17, 2018
2ed9e0f
Designing the DataTable as a 'factory' so that it could be injected o…
manuasir Apr 18, 2018
be05fed
Deleting unused dependencies and commenting some experimental upcomin…
manuasir Apr 18, 2018
efa90b4
Migrating Manager logs table to new dynamic table
manuasir Apr 18, 2018
fc443ec
Extracting some credential data from browser with jQuery instead requ…
manuasir Apr 18, 2018
92a737c
Removing some comments
manuasir Apr 18, 2018
749fcac
Merge pull request #37 from wazuh/3.2-dev-dynamic-tables
manuasir Apr 18, 2018
7a3065e
Changing static Splunk tables to dynamic tables in Manager Ruleset an…
manuasir Apr 19, 2018
0f937bc
Filtering by File in Manager Decoders tab
manuasir Apr 19, 2018
817abb9
Improving dynamic table class
manuasir Apr 20, 2018
1a6d9c4
Imprving backend efficiency in requests
manuasir Apr 20, 2018
596139a
Adding more wazuh styles
manuasir Apr 20, 2018
fd0ee21
Setting dynamic tables in groups tab
manuasir Apr 20, 2018
8cc9a2f
Improving groups view
manuasir Apr 20, 2018
9d52eca
Adding revision info in app.conf
manuasir Apr 20, 2018
6973953
Changing into ES6 syntax
manuasir Apr 20, 2018
8d00a46
Deleting event listeners and dependencies
manuasir Apr 21, 2018
04fab94
Improving agents endpoint
manuasir Apr 21, 2018
07a7a75
Improving table class and deleting console.logs
manuasir Apr 21, 2018
4b09c77
Deleting unused comments
manuasir Apr 21, 2018
53e4e19
Deleting unused event listeners and unused dependencies
manuasir Apr 21, 2018
139d14f
Using dynamic table in agent summary tab
manuasir Apr 21, 2018
9a1e206
Improving controllers
manuasir Apr 21, 2018
d240c5d
Added child class for agents tables
manuasir Apr 21, 2018
9508db2
Using new class design for printing agent tables
manuasir Apr 21, 2018
fe957f1
Updating agent summary view
manuasir Apr 21, 2018
444a472
Extended class for agents table injection
manuasir Apr 21, 2018
2dc9b66
Changing tableView instances
manuasir Apr 21, 2018
71fd7e0
Deleting redundant agent views
manuasir Apr 21, 2018
170dcc8
Deleting unused event listeners and queries
manuasir Apr 21, 2018
f87e945
Password is not shown anymore
manuasir Apr 21, 2018
196b3f8
cleaning the code in global view
manuasir Apr 21, 2018
8096cb1
Fixing manager status tab
manuasir Apr 21, 2018
8ff313a
Deleting failing stanza
manuasir Apr 21, 2018
36fe4e1
Adding led api connection status
manuasir Apr 21, 2018
a5c8ca8
Configuring connection led status
manuasir Apr 21, 2018
7b8442e
Improving manager configuration tab, deleting unused event listeners …
manuasir Apr 21, 2018
e5d7994
Cleaning and deleting console.logs
manuasir Apr 21, 2018
2b8bb9a
Deleting SSL verify in order to fix lab scenario issue closes #40
manuasir Apr 21, 2018
a1577fc
Deleting comments
manuasir Apr 21, 2018
6a239bd
Updating changelog
manuasir Apr 21, 2018
c12cfa9
Updating README
manuasir Apr 21, 2018
198cecb
Deleting comments
manuasir Apr 21, 2018
f64b1bf
Improving project structure
manuasir Apr 23, 2018
5d5b6f4
Deleting comments
manuasir Apr 23, 2018
3bf1a78
Fixing stuff in backend
manuasir Apr 23, 2018
fdd880f
Fixing tables when returned data doesn't match with any cell
manuasir Apr 23, 2018
1c9fab5
Cleaning the code a little bit
manuasir Apr 23, 2018
47af399
Deleting unused stuff
manuasir Apr 23, 2018
720836b
Adding copyright headers into *.js and *.py files
manuasir Apr 23, 2018
6be5ee8
Adding GPL2 license
manuasir Apr 23, 2018
ae5ee25
Providing some styling to groups tab
manuasir Apr 23, 2018
5866cca
Fixing Splunk queries in general tab
manuasir Apr 23, 2018
6bacbda
Transpiling to ES6 and fixing queries in overview policy monitoring
manuasir Apr 23, 2018
17103ad
Transpiling to ES6 and fixing queries in overview SCAP
manuasir Apr 23, 2018
347c67f
Transpiling to ES6 and fixing queries in overview audit
manuasir Apr 23, 2018
843a3d7
Transpiling to ES6 and fixing queries in overview audit
manuasir Apr 23, 2018
e6ab2b9
Transpiling to ES6 and fixing queries in CIS tab
manuasir Apr 23, 2018
5e292c1
Transpiling to ES6 and fixing queries in OpenSCAP tab
manuasir Apr 23, 2018
14af942
Transpiling to ES6 and fixing queries in FIM
manuasir Apr 23, 2018
8d7f505
Transpiling to ES6 and fixing queries in overview audit
manuasir Apr 23, 2018
522a7c8
Transpiling to ES6 and fixing queries in overview audit
manuasir Apr 23, 2018
2c83f68
Transpiling to ES6 and fixing queries in wazuh alerts
manuasir Apr 23, 2018
08c0765
Transpiling to ES6 and fixing queries in wazuh alerts
manuasir Apr 23, 2018
5b3ce97
Transpiling to ES6 and fixing queries in PCIDSS
manuasir Apr 23, 2018
e77d0d7
Updating changelog
manuasir Apr 23, 2018
bc8eea5
Merge pull request #41 from wazuh/3.2-dev-extending-tables
manuasir Apr 23, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Transpiling to ES6 and fixing queries in overview audit
  • Loading branch information
manuasir committed Apr 23, 2018
commit 8d7f50537314a4ccdd76c8af3e28590bcc49d4d1
20 changes: 13 additions & 7 deletions wazuh/appserver/static/js/viewControllers/overview_audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ require([
mvc.Components.registerInstance('url', urlTokenModel);
const defaultTokenModel = mvc.Components.getInstance('default', { create: true });
const submittedTokenModel = mvc.Components.getInstance('submitted', { create: true });

let baseUrl = ''
urlTokenModel.on('url:navigate', function () {
defaultTokenModel.set(urlTokenModel.toJSON());
if (!_.isEmpty(urlTokenModel.toJSON()) && !_.all(urlTokenModel.toJSON(), _.isUndefined)) {
Expand All @@ -107,6 +107,12 @@ require([
}
});

$(document).ready(() => {
const urlTemp = window.location.href
const arr = urlTemp.split("/")
baseUrl = arr[0] + "//" + arr[2]
})

// Initialize tokens
defaultTokenModel.set(urlTokenModel.toJSON());

Expand Down Expand Up @@ -441,7 +447,7 @@ require([
element1.on("click", function (e) {
if (e.field !== undefined) {
e.preventDefault();
const url = TokenUtils.replaceTokenNames("{{SPLUNKWEB_URL_PREFIX}}/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.groups=\"audit\" rule.id=80790 | stats count&earliest=$when.earliest$&latest=$when.latest$", _.extend(submittedTokenModel.toJSON(), e.data), TokenUtils.getEscaper('url'), TokenUtils.getFilters(mvc.Components));
const url = baseUrl + "/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.groups=\"audit\" rule.id=80790 | stats count"
utils.redirect(url, false, "_blank");
}
});
Expand Down Expand Up @@ -472,7 +478,7 @@ require([
element2.on("click", function (e) {
if (e.field !== undefined) {
e.preventDefault();
const url = TokenUtils.replaceTokenNames("{{SPLUNKWEB_URL_PREFIX}}/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.groups=\"audit\" rule.id=80784 | stats count&earliest=$when.earliest$&latest=$when.latest$", _.extend(submittedTokenModel.toJSON(), e.data), TokenUtils.getEscaper('url'), TokenUtils.getFilters(mvc.Components));
const url = baseUrl + "/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.groups=\"audit\" rule.id=80784 | stats count"
utils.redirect(url, false, "_blank");
}
});
Expand Down Expand Up @@ -503,7 +509,7 @@ require([
element3.on("click", function (e) {
if (e.field !== undefined) {
e.preventDefault();
const url = TokenUtils.replaceTokenNames("{{SPLUNKWEB_URL_PREFIX}}/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.groups=\"audit\" rule.id=80781 | stats count&earliest=$when.earliest$&latest=$when.latest$", _.extend(submittedTokenModel.toJSON(), e.data), TokenUtils.getEscaper('url'), TokenUtils.getFilters(mvc.Components));
const url = baseUrl + "/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.groups=\"audit\" rule.id=80781 | stats count"
utils.redirect(url, false, "_blank");
}
});
Expand Down Expand Up @@ -534,7 +540,7 @@ require([
element4.on("click", function (e) {
if (e.field !== undefined) {
e.preventDefault();
const url = TokenUtils.replaceTokenNames("{{SPLUNKWEB_URL_PREFIX}}/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.groups=\"audit\" rule.id=80791 | stats count&earliest=$when.earliest$&latest=$when.latest$", _.extend(submittedTokenModel.toJSON(), e.data), TokenUtils.getEscaper('url'), TokenUtils.getFilters(mvc.Components));
const url = baseUrl + "/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.groups=\"audit\" rule.id=80791 | stats count"
utils.redirect(url, false, "_blank");
}
});
Expand Down Expand Up @@ -565,7 +571,7 @@ require([
element5.on("click", function (e) {
if (e.field !== undefined) {
e.preventDefault();
const url = TokenUtils.replaceTokenNames("{{SPLUNKWEB_URL_PREFIX}}/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.description=* rule.groups=\"audit\" | stats latest(rule.description)&earliest=$when.earliest$&latest=$when.latest$", _.extend(submittedTokenModel.toJSON(), e.data), TokenUtils.getEscaper('url'), TokenUtils.getFilters(mvc.Components));
const url = baseUrl + "/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.description=* rule.groups=\"audit\" | stats latest(rule.description)"
utils.redirect(url, false, "_blank");
}
});
Expand Down Expand Up @@ -925,7 +931,7 @@ require([
element16.on("click", function (e) {
if (e.field !== undefined) {
e.preventDefault();
const url = TokenUtils.replaceTokenNames("{{SPLUNKWEB_URL_PREFIX}}/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.groups=\"audit\" | stats count sparkline by agent.name,rule.description, audit.exe, audit.type, audit.euid | sort count DESC | rename agent.name as \"Agent name\", rule.description as Description, audit.exe as Command, audit.type as Type, audit.euid as \"Effective user id\"&earliest=$when.earliest$&latest=$when.latest$", _.extend(submittedTokenModel.toJSON(), e.data), TokenUtils.getEscaper('url'), TokenUtils.getFilters(mvc.Components));
const url = baseUrl + "/app/wazuh/search?q=index=wazuh sourcetype=wazuh rule.groups=\"audit\" | stats count sparkline by agent.name,rule.description, audit.exe, audit.type, audit.euid | sort count DESC | rename agent.name as \"Agent name\", rule.description as Description, audit.exe as Command, audit.type as Type, audit.euid as \"Effective user id\""
utils.redirect(url, false, "_blank");
}
});
Expand Down