Graylog integration returns 500

Hello,

I have the same problem currently using graylog 3.2…

array (
‘device-page’ =>
array (
‘loglevel’ => 7,
‘rowCount’ => 10,
),
‘server’ => ‘https://syslog-srv2.xxx.xx’,
‘port’ => 9000,
‘username’ => ‘user-graylog’,
‘password’ => ‘xxxx’,
‘version’ => ‘other’,
‘timezone’ => ‘Europe/Paris’,
‘match-any-address’ => ‘true’,
‘base_uri’ => ‘/api/’,

got http 500 Internal Server Error with body : error: “Undefined index: messages”

@lucasevabou14 try settting the following in LibreNMS config.php:

$config[‘graylog’][‘base_uri’] = ‘/api/search/universal/relative’;

I had the same problem as you and upon running tcpdump on the LibreNMS machine I found that the LibreNMS graylog mechanism only appends ?query=%2A&range=&limit=1&offset=0 after the value for base_uri. Hence the search/universal/relative part is needed for Graylog to respond properly.

1 Like