Actions
Bug #513
closedyaml parsing -- line number wrong
Affected Versions:
Effort:
Difficulty:
Label:
Description
Stumbled upon an interesting situation -
@suricata:~$ sudo suricata -D -c /etc/suricata/peter-yaml/suricata-af-packet-mmap.yaml --af-packet=eth3 [20831] 28/7/2012 -- 15:41:18 - (suricata.c:1206) <Info> (main) -- This is Suricata version 1.3dev (rev 43fce1e) [20831] 28/7/2012 -- 15:41:18 - (util-cpu.c:171) <Info> (UtilCpuPrintSummary) -- CPUs/cores online: 16 Failed to parse configuration file at line 558: could not find expected ':'
however the problem was with line 524 (in my yaml) where I had :
icmp: new: 30 established: 300 emergency-new: 10 emergency-established:5 - THE problem
was that it should have been:
emergency-established: 5 ( a space after the ":")
but the line numbering in reporting the err was totally off.
Updated by Victor Julien over 12 years ago
- Subject changed from yaml parsing to yaml parsing -- line number wrong
- Description updated (diff)
- Assignee set to OISF Dev
- Target version set to 1.3.1
- Estimated time set to 1.00 h
Updated by Victor Julien over 12 years ago
- Status changed from New to Assigned
- Assignee changed from OISF Dev to Victor Julien
I checked, and get the same error. The line number is correct though. Can you attach a yaml for which the line number is misreported?
Updated by Victor Julien over 12 years ago
- Status changed from Assigned to Closed
Not able to reproduce, assuming fixed. Please reopen if necessary.
Actions