https://github.com/lmangani/typesense-pcap-demo
Typesense Demo for PCAP JSON Data
https://github.com/lmangani/typesense-pcap-demo
json pcap tshark typesense typesense-showcase wireshark
Last synced: 3 months ago
JSON representation
Typesense Demo for PCAP JSON Data
- Host: GitHub
- URL: https://github.com/lmangani/typesense-pcap-demo
- Owner: lmangani
- Created: 2021-05-16T09:34:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-16T18:10:03.000Z (about 4 years ago)
- Last Synced: 2024-10-04T13:21:59.947Z (8 months ago)
- Topics: json, pcap, tshark, typesense, typesense-showcase, wireshark
- Language: JavaScript
- Homepage:
- Size: 96.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# typesense-pcap-demo
[Typesense](https://typesense.org/) + Tshark PCAP = Magic!
## Requirements
- nodejs 12.x+
- docker
- tshark### Start Typesense
Run a Typesense instance using `docker`
```sh
$ npm install
$ npm run typesenseServer
```Configure your server and collection settings using the `.env` file
### Import PCAP Dataset
Create & Import custom PCAP data/schema using `tshark` _(ek json)_
```sh
$ tshark -T ek -j "port 22" -P -V -x -c 100 | sed '/^{"index/d' > data/pcap.json
$ npm run populateTypesenseIndex
```### Start App
Bootstrap your Application
```sh
$ npm start
```
Browse to http://localhost:3000 to search and view your PCAP data.