You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
$ curl -k -g -X POST -m60 -d '{
> "subject": "bad things happened",
> "sources": ["bro"],
> "data": {
> "msg": "bad things happened",
> "note": "SCOT::JSON_Alert",
> "dropped": "F",
> "ts": "2016-01-17T10:04:12.465551Z",
> "actions": [
> "SCOT::ACTION_LOG",
> "Notice::ACTION_LOG"
> ],
> "sub": "https://192.168.168.5/discover?q=Cfjwiwelskdjfie8123",
> "peer_descr": "bro",
> "suppress_for": 3600.0
> }
> }' "https://admin:admin@52.12.122.162/scot/alertgroup"
The application raised the following error:
Can't locate object method "history" via package "Log::Log4perl::Logger" at inline template fd403ab55a4c875e35b42428816134c7 line 311.
306: %= $kv->(Time => scalar localtime(time))
307: </table>
308: </div>
309: <div class="tap">tap for more</div>
310: </div>
311: % if (@{app->log->history}) {
312: <div id="log" class="box infobox spaced">
313: <table>
314: % for my $msg (@{app->log->history}) {
315: <tr>
316: <td class="striped value wide">
and the StackTrace middleware couldn't catch its stack trace, possibly because your application overrides $SIG{__DIE__} by itself, preventing the middleware from working correctly. Remove the offending code or module that does it: known examples are CGI::Carp and Carp::Always.
The text was updated successfully, but these errors were encountered:
@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.
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):
The text was updated successfully, but these errors were encountered: