Changing json format again
This commit is contained in:
parent
777e3441cb
commit
99a4a417b7
1 changed files with 1 additions and 1 deletions
|
@ -23,12 +23,12 @@ def logparse(LOGPATH, INFLUXHOST, INFLUXPORT, INFLUXDBDB, INFLUXUSER, INFLUXUSER
|
||||||
IPS = {}
|
IPS = {}
|
||||||
GEOHASH = {}
|
GEOHASH = {}
|
||||||
COUNT = {}
|
COUNT = {}
|
||||||
METRICS = []
|
|
||||||
with open(LOGPATH, "r") as FILE:
|
with open(LOGPATH, "r") as FILE:
|
||||||
STR_RESULTS = os.stat(LOGPATH)
|
STR_RESULTS = os.stat(LOGPATH)
|
||||||
ST_SIZE = STR_RESULTS[6]
|
ST_SIZE = STR_RESULTS[6]
|
||||||
FILE.seek(ST_SIZE)
|
FILE.seek(ST_SIZE)
|
||||||
while 1:
|
while 1:
|
||||||
|
METRICS = []
|
||||||
WHERE = FILE.tell()
|
WHERE = FILE.tell()
|
||||||
LINE = FILE.readline()
|
LINE = FILE.readline()
|
||||||
if not LINE:
|
if not LINE:
|
||||||
|
|
Loading…
Reference in a new issue