When uploading the log CSV into Elasticsearch through Kibana, why must the time field be set to time and not policy_date?
time is when the connection happened; policy_date is when the policy that judged it was installed. Kibana orders, filters and charts everything by the chosen time field, so picking policy_date would pile all logs onto a handful of install times.
Kibana's Upload a file detects the columns and guesses a timestamp field. Each document's timestamp decides:
- which documents appear for the time range in the top-right picker;
- where they land on every histogram and dashboard.
A firewall log has several date-like fields. time is the moment of the event. policy_date is the same for every log produced under one installed policy. Choose the wrong one, and the dashboard shows a few huge spikes on the install dates, and a search for "last hour" misses current traffic.
After the import (here into an index named my_logs) you build a dashboard, for example drops per source host or per service over time. If a visualisation stays empty, the time picker is usually set to a range that contains no logs.
Go deeper:
Upload data files (Elastic docs) — the file upload, field detection and overriding settings.
Kibana (Wikipedia) — what Kibana is and how it relates to Elasticsearch.