threatstream/mhn — pull request #43 by kx499 (2014-07-30 02:14:31+00:00)
Title: Multiple UI Enhancements

These commits add a variety of UI changes I wanted for my management, and thought I'd package them up in a pull request in case they made sense for the project. For the "Attacks" page a sensor name column and additional filtering for source IP address and destination port were added. In the process of making those changes, I realized the date/time is stored in UTC in Mongo, so I had to update that part of the "_clean_query" function.

I also created a "Feeds" report that details the payloads for the various channels. To do so I had to add some functionality to the HpFeed class and designed the template in a way that it will dynamically generate the fields/columns based on the channel_map dict. All that is needed is to define additional channels/field mappings in that variable. The last change was to add in the code to display the Top filters and make the values hyperlinks to the respective reports.