Updated example record comment under source to reflect on the new record structure
This commit is contained in:
parent
6983b8ebec
commit
e74741c0ad
@ -82,8 +82,9 @@ async def process_data(file_path: str):
|
|||||||
if not line:
|
if not line:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Skip comments but detect AXFR transfers to change the source)
|
||||||
if line.startswith(';'):
|
if line.startswith(';'):
|
||||||
if 'DiG' in line and 'AXFR' in line: # Zone transfer from an AXFR request
|
if 'DiG' in line and 'AXFR' in line:
|
||||||
source = 'axfr'
|
source = 'axfr'
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -185,12 +186,14 @@ Input:
|
|||||||
'_index' : 'dns-zones',
|
'_index' : 'dns-zones',
|
||||||
'_source' : {
|
'_source' : {
|
||||||
'domain' : '1001.vegas',
|
'domain' : '1001.vegas',
|
||||||
|
'zone' : 'vegas',
|
||||||
'records' : {
|
'records' : {
|
||||||
'ns': [
|
'ns': [
|
||||||
{'ttl': 3600, 'data': 'ns11.waterrockdigital.com'},
|
{'ttl': 3600, 'data': 'ns11.waterrockdigital.com'},
|
||||||
{'ttl': 3600, 'data': 'ns12.waterrockdigital.com'}
|
{'ttl': 3600, 'data': 'ns12.waterrockdigital.com'}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
'source' : 'czds',
|
||||||
'seen' : '2021-09-01T00:00:00Z'
|
'seen' : '2021-09-01T00:00:00Z'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user