I need a help for writing the filters for logstash. My logstash is configured to read syslog.
The log message is as follows,
Mar 14 15:11:11 localhost 192.168.235.136 {'status': 'True', 'endpoint': '/search/basic/', 'parameters': <QueryDict: {u'fileName': [u'Adware']}>, 'company': u'Global first', 'matched threat scape': [u'Enterprise IT Management and Investment'], 'request id': 11, 'user id': 2L, 'user': u' ', 'matched report id': [u'Intel-732102']}
I wanted to have filters on kibana, based on the json keys that I am passing in the message to logstash.
I am not able to write the filters to get the parameters from my logs. I have also tried http://grokdebug.herokuapp.com/ for generating the filter. It gave me the pattern that I am not sure how to use it.
{%{QS:'status'}: %{QS}, %{QS}: %{QS}, %{QS}: <QueryDict: {u%{QS}: %{SYSLOG5424SD}}>, %{QS}: u%{QS}, %{QS}: %{SYSLOG5424SD}, %{QS}: 11, %{QS}: 2L, %{QS}: u' ', 'matched report id': %{SYSLOG5424SD}}