Skip to content

Instantly share code, notes, and snippets.

View jasonish's full-sized avatar

Jason Ish jasonish

View GitHub Profile
{
"template" : "logstash-*",
"version" : 1,
"settings" : {
"number_of_replicas": 0,
"index.refresh_interval" : "5s"
},
"mappings" : {
"_default_" : {
"dynamic_templates" : [
; <<>> DiG 9.10.4-P8-RedHat-9.10.4-5.P8.fc25 <<>> txt codemonkey.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30740
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
; <<>> DiG 9.10.4-P8-RedHat-9.10.4-5.P8.fc25 <<>> txt codemonkey.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8207
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
; <<>> DiG 9.10.4-P8-RedHat-9.10.4-5.P8.fc25 <<>> txt codemonkey.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47956
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
{
"timestamp": "2017-04-21T22:07:33.192174-0600",
"flow_id": 132168341122734,
"pcap_cnt": 2,
"event_type": "dhcp",
"src_ip": "10.16.1.109",
"src_port": 67,
"dest_ip": "10.16.1.1",
"dest_port": 68,
"proto": "UDP",
{
"timestamp": "2017-04-21T22:07:33.192174-0600",
"flow_id": 645455587700398,
"pcap_cnt": 2,
"event_type": "dhcp",
"src_ip": "10.16.1.109",
"src_port": 67,
"dest_ip": "10.16.1.1",
"dest_port": 68,
"proto": "UDP",
{
"timestamp": "2017-04-21T22:07:33.192174-0600",
"flow_id": 645455587700398,
"pcap_cnt": 2,
"event_type": "dhcp",
"src_ip": "10.16.1.109",
"src_port": 67,
"dest_ip": "10.16.1.1",
"dest_port": 68,
"proto": "UDP",
{
"timestamp": "2017-04-21T22:07:33.192174-0600",
"flow_id": 269388251262638,
"pcap_cnt": 2,
"event_type": "dhcp",
"src_ip": "10.16.1.109",
"src_port": 67,
"dest_ip": "10.16.1.1",
"dest_port": 68,
"proto": "UDP",
@jasonish
jasonish / dhcp.json
Created April 20, 2017 16:39
DHCP brief vs full...
{
"timestamp": "2017-01-12T14:19:31.564270-0600",
"flow_id": 995572963318830,
"pcap_cnt": 3,
"event_type": "dhcp",
"src_ip": "10.16.1.1",
"src_port": 67,
"dest_ip": "10.16.1.166",
"dest_port": 68,
"proto": "UDP",
// Brief...
{
"timestamp": "2017-01-12T14:19:31.564270-0600",
"flow_id": 995572963318830,
"pcap_cnt": 3,
"event_type": "dhcp",
// Should the the IP address of the client, even if thats 0.0.0.0
// in the case of no response.
"src_ip": "10.16.1.1",
"src_port": 67,