salspaugh / splparser

Simple parser for Splunk Processing Language (SPL) written in Python.
Other
35 stars 14 forks source link

Outputcsv #110

Closed keroro824 closed 10 years ago

keroro824 commented 10 years ago

could you please look at this one:)

keroro824 commented 10 years ago

Does this look ok now?

salspaugh commented 10 years ago

Yes, looks good. Merge away. Don't forget to rebase, etc. :+1:

keroro824 commented 10 years ago

one test for rex and one test for xpath failed. Is it expected?

keroro824 commented 10 years ago

splparser.parse('rex field=_raw "^(?[0-9].[0-9].[0-9].[0-9])[^]]] \"(?[A-Z]) (?[A-Za-z/.]) (?[^\"])\" (?[0-9]) (?[0-9-])"').print_tree()

and

splparser.parse(r'xpath outfield=instrument_id "//DataSet[sname=\"BARC\"]/instrument_id"').print_tree()

salspaugh commented 10 years ago

Yes, those are expected to fail and you don't need to worry about that.