Skip to content

Commit

Permalink
fix(timestamp): Fix the timestamp locator for log sources
Browse files Browse the repository at this point in the history
  • Loading branch information
rnishtala-sumo committed Oct 8, 2024
1 parent ea5d544 commit 8cf7c83
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 51 deletions.
1 change: 1 addition & 0 deletions .changelog/3853.fixed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix(timestamp): Fix the timestamp locator for log sources
8 changes: 1 addition & 7 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: set ft=ruby :

Vagrant.configure('2') do |config|
config.vm.box = 'bento/ubuntu-22.04-arm64'
config.vm.box = 'ubuntu/focal64'
config.vm.disk :disk, size: "50GB", primary: true
config.vm.box_check_update = false
config.vm.host_name = 'sumologic-kubernetes-collection'
Expand All @@ -17,12 +17,6 @@ Vagrant.configure('2') do |config|
vb.name = 'sumologic-kubernetes-collection'
end

config.vm.provider 'parallels' do |vb|
vb.cpus = 8
vb.memory = 16384
vb.name = 'sumologic-kubernetes-collection'
end

config.vm.provider "qemu" do |qe, override|
override.vm.box = "perk/ubuntu-2204-arm64"
qe.gui = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand All @@ -609,7 +609,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand Down Expand Up @@ -758,7 +758,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "events"
Expand All @@ -768,7 +768,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "logs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand All @@ -609,7 +609,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand Down Expand Up @@ -707,7 +707,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "events"
Expand All @@ -717,7 +717,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "logs"
Expand Down
8 changes: 4 additions & 4 deletions tests/helm/testdata/goldenfile/terraform/default.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand All @@ -609,7 +609,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand Down Expand Up @@ -707,7 +707,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "events"
Expand All @@ -717,7 +717,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "logs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand All @@ -609,7 +609,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand Down Expand Up @@ -702,7 +702,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "events"
Expand All @@ -712,7 +712,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "logs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand All @@ -609,7 +609,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand Down Expand Up @@ -707,7 +707,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "events"
Expand All @@ -717,7 +717,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "logs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand All @@ -609,7 +609,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand Down Expand Up @@ -707,7 +707,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "events"
Expand All @@ -717,7 +717,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "logs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand All @@ -609,7 +609,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand Down Expand Up @@ -707,7 +707,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "events"
Expand All @@ -717,7 +717,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "logs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand All @@ -609,7 +609,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand Down Expand Up @@ -707,7 +707,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "events"
Expand All @@ -717,7 +717,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "logs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand All @@ -609,7 +609,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand Down Expand Up @@ -707,7 +707,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "events"
Expand All @@ -717,7 +717,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "logs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand All @@ -610,7 +610,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
]
}
Expand Down Expand Up @@ -708,7 +708,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "events"
Expand All @@ -718,7 +718,7 @@ data:
"default_date_formats": [
{
"format": "epoch",
"locator": "\\\"timestamp\\\":(\\\\d+)"
"locator": "\"timestamp\":(\\d+)"
}
],
"name": "logs"
Expand Down
Loading

0 comments on commit 8cf7c83

Please sign in to comment.