Date format Suricata
-
@bmeeks YY-MM-DD would be OK for all countries....
-
@manilx said in Date format Suricata:
@bmeeks YY-MM-DD would be OK for all countries....
The
Moment.js
module, when included in a Bootstrap environment, lets you specify the format of a date colum so that Bootstrap sorts it correctly.The way Bootstrap sorting works is on the client itself. The server (pfSense in our case) spits out the entire HTML document to the browser which displays it. Embedded within the HTML are a series of Javascript functions for various Bootstrap things. One of those is the table sorting routine. When you click a colunn header to sort a column, it's not pfSense that does that. It is the Javascript code running within the browser. And that code needs to know what "format' of data it is sorting in the HTML tables.
-
@bmeeks said in Date format Suricata:
I'm not giving up, but the task just got a little more complicated.
This is how pfblockerNG presents the alerts:
Could that be a clou?
-
@fireodo fine with that. Just the numeric MM-DD is SO weird for us europeans ;)
-
@fireodo said in Date format Suricata:
@bmeeks said in Date format Suricata:
I'm not giving up, but the task just got a little more complicated.
This is how pfblockerNG presents the alerts:
Could that be a clou?
If you change that column sort direction, does it work properly with dates that have "Apr" in them? The problem I was talking about only happens when you get the right combinations of alert dates. For example, if you had alerts from January through May, your sorting would be "off". If you sorted "Ascending" you expect January alerts to come first, then February, March, April, etc. But depending on how Bootstrap interprets the column it might sort with "April" alerts first, then February, etc., because it is looking at just the alphabetical ordering of the month. That's obviously wrong.
It's possible that either
Moment.js
or something siimilar is present with the Bootstrap environmnet on pfSense. To be honest I've just not kept up with the changes in Bootstrap as I have not needed to. -
@manilx said in Date format Suricata:
@fireodo fine with that. Just the numeric MM-DD is SO weird for us europeans ;)
I undertand that. The European date format is also "weird" to Americans
. Hopefully I can find a fully configurable answer.
-
@bmeeks said in Date format Suricata:
For example, if you had alerts from January through May, your sorting would be "off".
You're right!