Skip to content

Commit fa03f3a

Browse files
authored
Merge pull request #258 from SumoLogic/example-for-fields-in-sources
Giving an example for source fields
2 parents 294c9d1 + b41cc81 commit fa03f3a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

website/docs/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@ The following properties are common to ALL sources and can be used to configure
5454
- `filters` - (Optional) If you'd like to add a filter to the source, type the name of the filter (Exclude, Include, Mask, Hash, or Forward.
5555
- `cutoff_timestamp` - (Optional) Only collect data more recent than this timestamp, specified as milliseconds since epoch (13 digit).
5656
- `cutoff_relative_time` - (Optional) Can be specified instead of cutoffTimestamp to provide a relative offset with respect to the current time. Example: use -1h, -1d, or -1w to collect data that's less than one hour, one day, or one week old, respectively.
57-
- `fields` - (Optional) Map containing [key/value pairs][3].
57+
- `fields` - (Optional) Map containing [key/value pairs][3], e.g.
58+
```
59+
resource "sumologic_http_source" "instrumentation-logs" {
60+
...
61+
fields = {"origin": "instrumentation"}
62+
}
63+
64+
```
5865

5966
[0]: index.html.markdown
6067
[2]: https://en.wikipedia.org/wiki/Tz_database

0 commit comments

Comments
 (0)