Commit graph

22 commits

Author SHA1 Message Date
Alfredo Cardigliano
3381ddbcf5 REST endpoints update
get_alerts_data.lua -> rest/get/alert/data.lua, host_get_json.lua -> rest/get/host/data.lua, get_interface_data.lua -> rest/get/interface/data.lua, live_traffic_extraction.lua -> rest/get/pcap/live_extraction.lua
2019-01-30 14:18:45 +01:00
Alfredo Cardigliano
a087fb3bc9 Added tracker.log(), tracking host_get_json 2018-12-05 01:56:15 +01:00
Alfredo Cardigliano
6d7de7bd57 Moved header for all pages to page_utils 2018-11-29 18:10:18 +01:00
Luca Deri
f0c936c368 Updated (C) to 2018 2018-03-22 21:59:42 +01:00
emanuele-f
1c38df48c9 Unify character encoding header code 2017-05-04 17:12:06 +02:00
Simone Mainardi
fb7b9d0366 Top HTTP Sites Rework
Implements #1060
2017-04-04 18:50:52 +02:00
Josh Soref
78e78c018c Fixes spellings and typos
Thank goes to
Josh Soref <jsoref@users.noreply.github.com>
2017-03-06 17:54:48 +01:00
Emanuele Faranda
afdfac1c9c Lua scripts parameters validation (#970)
* partial work

* Migrate 'mode' parameters

* Migrate alerts types

* Fix some interface ids

* Partial work

* Partial work

* End of work for _GET parameters

* Work in progress

* Add support for special parameters

* Preferences validation

* Fixes and improvements

* Enforce interger validation
2017-02-08 12:25:35 +01:00
Luca
30e1a75f98 (C) update 2017-01-10 15:03:16 -08:00
Simone Mainardi
fe5c6377aa Adds numFlows to flows retrieval for proper pagination
numFlows was suppressed in an earlier commit but this caused
issues with pagination of results.
2016-08-25 18:30:27 +02:00
Luca Deri
a3d36634e3 Code cleanup 2016-08-10 15:53:39 +02:00
Simone Mainardi
7a8878a886 Adds bidirectional flags in host_get_json TCP flows
An excerpt of the json returned is:

{"srv.ip":"a.b.c.d","cli.port":50559,"srv.port":443,
"cli2srv.tcp_flags":{"SYN":1,"RST":0,"PSH":1,"FIN":0,"URG":0,"ACK":1},"cli2srv.throughput_bps":0,"bytes":2869,"srv2cli.throughput_bps":0,"cli2srv.throughput_pps":0,
"srv2cli.tcp_flags":{"SYN":1,"RST":0,"PSH":1,"FIN":0,"URG":0,"ACK":1},"tcp_established":true,"srv2cli.throughput_pps":0,"cli.ip":"192.168.2.130","proto.ndpi_id":126,"proto.ndpi":"SSL.Google"},
2016-07-14 12:44:55 +02:00
Simone Mainardi
19a2372d45 Improves interface selection criteria in host_get_json.lua 2016-06-18 15:28:25 +02:00
Simone Mainardi
5048f0d9af Implements class Paginator to better handle results
A new Paginator class has been implemented. The class
is generic in the sense that it accepts lua tables as input
in order to cofigure, for exampe, the number of results per page
and so on.
2016-06-09 00:23:25 +02:00
Simone Mainardi
ea0e3d7f85 Implements per-host per-l7protocol throughput statistics
Example endpoint to retrieve results is:
http://localhost:3000/lua/host_get_json.lua?ifname=0&host=192.168.2.130&host_stats_flows=1
2016-05-31 15:59:24 +02:00
Luca Deri
79022c7238 Fixed flow statistics in host_get_json.lua
Fixed TCP flags
Smaller cosmetic fixes
2016-05-30 22:58:08 +02:00
Simone Mainardi
0d9ced6b48 Removes limit on host_get_json.lua flows returned 2016-05-24 12:54:41 +02:00
Luca
2fb0e863fe Fixed inter-arrival time in flows
Updated (C)
2016-04-19 11:06:39 +02:00
Simone Mainardi
9855a381e8 Rearranges http statistics in host_get_json.lua 2016-04-12 10:25:32 +02:00
Simone Mainardi
e4dd2cba51 Implements cli2srv/srv2cli flow throughput breakdown 2016-04-07 13:22:27 +02:00
Simone Mainardi
f8298cbb58 Extends host_get_json to optionally include host flows statistics 2016-04-05 12:06:39 +02:00
Luca
730d76b9f5 Initial import from SVN 2015-04-30 12:22:35 +02:00