criblpacks / cribl-palo-alto-networks

Process, reduce, and transform Palo Alto Networks Firewall logs.
Apache License 2.0
13 stars 7 forks source link

Allow use of timezone names #8

Closed bdalpe closed 3 years ago

bdalpe commented 3 years ago

Allow use of "America/Chicago" based time zone definitions in the lookup file instead of just static offsets like -5. (From @FusionFC)

bdalpe commented 3 years ago

I think this is possible with the toLocaleString function.

bdalpe commented 3 years ago

Even better... https://docs.cribl.io/logstream/cribl-reference/#time

C.Time.adjustTZ(epochTime: number, tzTo: string, tzFrom?: string): number

e.g. C.Time.adjustTZ(_time, 'UTC', 'America/Chicago')