You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ Flags:
35
35
--version Show application version.
36
36
```
37
37
38
+
38
39
There are two ways to run this Nozzle:
39
40
40
41
1. Run as standalone app
@@ -48,6 +49,28 @@ godep go run main.go --sumo-endpoint=https://sumo-endpoint --api-endpoint=https:
48
49
49
50
If everything goes right, you should see in your terminal the _Nozzle's Logs_ and, in the __Sumo Logic endpoint__ (defined in the _--sumo-endpoint_ flag) you should see the logs according the events you choose (_'LogMessage'_ and _'ValueMetric'_ with _verbose_ in this case).
50
51
52
+
53
+
### Filtering Option
54
+
55
+
There is a lot of Events coming from Cloud Foundry and, in most of the cases, we will only want to see **some** of them or **exclude** some of them, in this cases the filtering flags are useful.
56
+
57
+
If you want to include only the events that contains:
58
+
59
+
* job: diego_cell
60
+
* source_type: app
61
+
62
+
and you are not interested in the events that contains:
63
+
64
+
* source_type:other
65
+
* unit:count
66
+
67
+
The correct way of using those flags will be:
68
+
69
+
```
70
+
godep go run main.go --sumo-endpoint=https://sumo-endpoint --api-endpoint=https://api.endpoint --cloudfoundry-user=some_user --cloudfoundry-password=some_password --sumo-post-minimum-delay=200ms --log-events-batch-size=200 --events=LogMessage, ValueMetric --include-only-matching-filter=job:diego_cell,source_type:app --exclude-always-matching-filter=source_type:other,unit:count
71
+
```
72
+
73
+
51
74
### Run as a tile in Pivotal Cloud Foundry
52
75
53
76
**Pivotal Cloud Foundry** (PCF) has a Tile Generator tool which will help you to deploy this Nozzle in PCF allowing an easy configuration of it.
0 commit comments