|
2 | 2 |
|
3 | 3 | # ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
4 | 4 | # This script imports the existing fields and FERs (required by aws observability solution) if field(s) and FER(s) are already present in the user's Sumo Logic account. |
5 | | -# For SUMOLOGIC_ENV, provide one from the list : au, ca, de, eu, jp, us2, in, fed or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security" |
| 5 | +# For SUMOLOGIC_ENV, provide one from the list : au, ca, de, eu, jp, us2, fed or us1. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security" |
6 | 6 | # Before using this script, set following environment variables using below commands: |
7 | 7 | # export SUMOLOGIC_ENV="" |
8 | 8 | # export SUMOLOGIC_ACCESSID="" |
9 | 9 | # export SUMOLOGIC_ACCESSKEY="" |
10 | 10 | #----------------------------------------------------------------------------------------------------------------------------------------------------------- |
11 | 11 |
|
12 | 12 | # Validate Sumo Logic environment/deployment. |
13 | | -if ! [[ "$SUMOLOGIC_ENV" =~ ^(au|ca|de|eu|jp|us2|in|fed|us1|kr)$ ]]; then |
14 | | - echo "$SUMOLOGIC_ENV is invalid Sumo Logic deployment. For SUMOLOGIC_ENV, provide one from list : au, ca, de, eu, fed, in, jp, kr, us1 or us2. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security" |
| 13 | +if ! [[ "$SUMOLOGIC_ENV" =~ ^(au|ca|de|eu|jp|us2|fed|us1|kr)$ ]]; then |
| 14 | + echo "$SUMOLOGIC_ENV is invalid Sumo Logic deployment. For SUMOLOGIC_ENV, provide one from list : au, ca, de, eu, fed, jp, kr, us1 or us2. For more information on Sumo Logic deployments visit https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security" |
15 | 15 | exit 1 |
16 | 16 | fi |
17 | 17 |
|
|
0 commit comments