Closed dcode closed 8 years ago
@dcode. The history thing is a red-herring introduced by the Mojolicious package. To see the real error you'll want to look in the logs (/opt/sandia/webabbs/scot/log). Thanks for posting the curl command, I'll try to duplicate it tomorrow and will post a follow up.
Sorry for long delay: but I found the problem. You are missing a [ ] around the data in the data field.
in other words data should look like:
data: [ { stuff: "value" } ],
Oh sweet! Thanks. I didn't realize that was an array. On Feb 18, 2016 18:58, "Todd Bruner" notifications@github.com wrote:
Closed #29 https://github.com/sandialabs/scot/issues/29.
— Reply to this email directly or view it on GitHub https://github.com/sandialabs/scot/issues/29#event-555942592.
I'm trying to use the alert API because I'd like to forward Bro alert data to SCOT. It comes down to using curl, but I have been unsuccessful in getting it to complete against my local vm. So, I decided to try to go against the demo site and got the same error.
It seems there's maybe a mismatch in the version of the perl module Log::Log4perl::Logger? There's a missing
history
method.Here's the full error (I've formatted the JSON to be easier to read):