Skip to content

Commit 2b882cb

Browse files
x1unixjharvey10Copilot
authored
AI review
Co-authored-by: Joe Harvey <51208233+jharvey10@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d74f2dd commit 2b882cb

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/sources/reference/components/loki/loki.source.syslog.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,18 +191,18 @@ The `rfc3164_cisco_components` configures parsing of non-standard Cisco IOS sysl
191191
This block can only be used when you set `syslog_format` to `rfc3164`.
192192
{{< /admonition >}}
193193

194-
The following argument is supported:
194+
The following arguments are supported:
195195

196196
| Name | Type | Description | Default | Required |
197197
|--------------------|--------|-------------------------------------------------|---------|----------|
198198
| `enable_all` | `bool` | Enables all components below. | `false` | no |
199199
| `message_counter` | `bool` | Enables syslog message counter field parsing. | `false` | no |
200200
| `sequence_number` | `bool` | Enables service sequence number field parsing. | `false` | no |
201-
| `hostname` | `bool` | Enables origin hostname fleld parsing. | `false` | no |
202-
| `second_fractions` | `bool` | Enables miliseconds parsing in timestamp field. | `false` | no |
201+
| `hostname` | `bool` | Enables origin hostname field parsing. | `false` | no |
202+
| `second_fractions` | `bool` | Enables milliseconds parsing in timestamp field.| `false` | no |
203203

204204
{{< admonition type="note" >}}
205-
At-least one option has to be enabled if `enable_all` is set to `false`.
205+
At least one option has to be enabled if `enable_all` is set to `false`.
206206
{{< /admonition >}}
207207

208208
{{< admonition type="caution" >}}

internal/component/loki/source/syslog/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (s SyslogFormat) Validate() error {
5555
return fmt.Errorf("unknown syslog format: %q", s)
5656
}
5757

58-
// RFC3164CiscoComponents enables Cisco ios log line parsing and configures what fields to parse.
58+
// RFC3164CiscoComponents enables Cisco IOS log line parsing and configures what fields to parse.
5959
type RFC3164CiscoComponents struct {
6060
EnableAll bool
6161
MessageCounter bool

internal/component/loki/source/syslog/internal/syslogtarget/syslogtarget_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ func parseCefLogLines(t *testing.T, lines iter.Seq[string]) []cefLogLine {
595595
return out
596596
}
597597

598-
func TestSyslogTarget_RFC3136CiscoComponents(t *testing.T) {
598+
func TestSyslogTarget_RFC3164CiscoComponents(t *testing.T) {
599599
currentYear := time.Now().Year()
600600
parseDate := func(layout, value string) time.Time {
601601
r, err := time.Parse(layout, value)

internal/component/loki/source/syslog/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type RawFormatOptions struct {
3434
UseNullTerminatorDelimiter bool `alloy:"use_null_terminator_delimiter,attr,optional"`
3535
}
3636

37-
// RFC3164CiscoComponents enables Cisco ios log line parsing and configures what fields to parse.
37+
// RFC3164CiscoComponents enables Cisco IOS log line parsing and configures what fields to parse.
3838
type RFC3164CiscoComponents struct {
3939
EnableAll bool `alloy:"enable_all,attr,optional"`
4040
MessageCounter bool `alloy:"message_counter,attr,optional"`

internal/loki/promtail/scrapeconfig/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (config SyslogTargetConfig) IsRFC3164Message() bool {
182182
return config.SyslogFormat == SyslogFormatRFC3164
183183
}
184184

185-
// SyslogRFC3164CiscoComponents enables Cisco ios log line parsing and configures what fields to parse.
185+
// SyslogRFC3164CiscoComponents enables Cisco IOS log line parsing and configures what fields to parse.
186186
type SyslogRFC3164CiscoComponents struct {
187187
EnableAll bool `yaml:"enable_all"`
188188
MessageCounter bool `yaml:"message_counter"`

0 commit comments

Comments
 (0)