Skip to content

Commit 47f2e00

Browse files
amee-sumoJV0812jpipkin1
authored
new app+C2C flow (9 apps) (#5042)
* new app+C2C flow (9 apps) * Delete cid-redirects (1).json * Update docs/integrations/app-development/jfrog-xray.md Co-authored-by: Jagadisha V <[email protected]> * Update docs/integrations/app-development/jfrog-xray.md Co-authored-by: Jagadisha V <[email protected]> * Update docs/integrations/google/bigquery.md Co-authored-by: Jagadisha V <[email protected]> * Update docs/integrations/app-development/jfrog-xray.md Co-authored-by: Jagadisha V <[email protected]> * Update docs/integrations/app-development/jfrog-xray.md Co-authored-by: Jagadisha V <[email protected]> * Fix build error * updated the images * Update docs/integrations/app-development/jfrog-xray.md Co-authored-by: Jagadisha V <[email protected]> * Update docs/integrations/app-development/jfrog-xray.md Co-authored-by: Jagadisha V <[email protected]> * Update docs/integrations/app-development/jfrog-xray.md Co-authored-by: Jagadisha V <[email protected]> * Update docs/integrations/app-development/jfrog-xray.md Co-authored-by: Jagadisha V <[email protected]> * Update docs/integrations/app-development/jfrog-xray.md Co-authored-by: Jagadisha V <[email protected]> --------- Co-authored-by: Jagadisha V <[email protected]> Co-authored-by: John Pipkin <[email protected]>
1 parent 5abab6b commit 47f2e00

File tree

13 files changed

+284
-92
lines changed

13 files changed

+284
-92
lines changed

docs/integrations/app-development/jfrog-xray.md

Lines changed: 64 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ description: The JFrog Xray app provides visibility into the state of artifacts
66
---
77

88
import useBaseUrl from '@docusaurus/useBaseUrl';
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
911

1012
<img src={useBaseUrl('img/integrations/app-development/jfrog-xray.png')} alt="Thumbnail icon" width="50"/>
1113

12-
1314
The JFrog Xray app provides visibility into the state of artifacts and components in your JFrog Artifactory repository. The pre-configured dashboards present information about issues detected in your software components in Artifactory, including vulnerable containers, artifacts and components; license and security issues; and top Common Vulnerabilities and Exposures (CVEs). The app also helps identify all incoming threats detected via Sumo Logic Threat Intel.
1415

1516
The Sumo Logic app for JFrog Xray and collection are tested on JFrog Xray 2.9.0 version.
1617

17-
1818
## Log types
1919

2020
The JFrog Xray app uses the following log types:
@@ -23,8 +23,6 @@ The JFrog Xray app uses the following log types:
2323
* Artifactory logs. For more information, see [Collecting logs](/docs/integrations/app-development/jfrog-artifactory/#collecting-logs).
2424
* Kubernetes logs. For more information, see [Collecting Metrics and Logs for the Kubernetes app](/docs/integrations/containers-orchestration/kubernetes#collecting-metrics-and-logs-for-the-kubernetes-app).
2525

26-
27-
2826
### Sample log messages
2927

3028

@@ -71,8 +69,6 @@ The JFrog Xray app uses the following log types:
7169
}
7270
```
7371

74-
75-
7672
### Sample queries
7773

7874
The sample query is from Watches Invoked panel of the **JFrog Xray - Overview** dashboard.
@@ -89,8 +85,49 @@ _sourceCategory = Labs/jfrog/xray
8985
| json field=File "path", "depth", "sha256", "name", "parent_sha", "display_name", "pkg_type" as ComponentPath, ComponentDepth, ComponentSha, ComponentName, ComponentParentSha, ComponentDisplayName, ComponentPkgType nodrop
9086
| count_distinct(WatchName) as %"Number of Watches"
9187
```
88+
## Collection configuration and app installation
89+
90+
Choose one of the following methods to configure the JFrog Xray source and install the app:
91+
92+
<Tabs
93+
className="unique-tabs"
94+
defaultValue="Cloud-to-cloud source setup and app installation"
95+
values={[
96+
{label: 'Cloud-to-cloud source setup and app installation', value: 'Cloud-to-cloud source setup and app installation'},
97+
{label: 'HTTP source setup and app installation', value: 'HTTP source setup and app installation'}
98+
]}>
99+
100+
<TabItem value="Cloud-to-cloud source setup and app installation">
101+
102+
import CollectionConfiguration from '../../reuse/apps/collection-configuration.md';
103+
104+
<CollectionConfiguration/>
105+
106+
:::important
107+
Use the [Cloud-to-Cloud Integration for JFrog Xray](/docs/send-data/hosted-collectors/cloud-to-cloud-integration-framework/jfrog-xray-source/) to create the source and use the same source category while installing the app. By following these steps, you can ensure that your JFrog Xray app is properly integrated and configured to collect and analyze your JFrog Xray data.
108+
:::
109+
110+
### Create a new collector and install the app
111+
112+
import AppCollectionOPtion1 from '../../reuse/apps/app-collection-option-1.md';
113+
114+
<AppCollectionOPtion1/>
115+
116+
### Use an existing collector and install the app
117+
118+
import AppCollectionOPtion2 from '../../reuse/apps/app-collection-option-2.md';
92119

93-
## Collecting logs for JFrog Xray
120+
<AppCollectionOPtion2/>
121+
122+
### Use an existing source and install the app
123+
124+
import AppCollectionOPtion3 from '../../reuse/apps/app-collection-option-3.md';
125+
126+
<AppCollectionOPtion3/>
127+
128+
</TabItem>
129+
130+
<TabItem value="HTTP source setup and app installation">
94131

95132
This section explains how to collect logs from JFrog Xray and ingest them into Sumo Logic for use with the JFrog Xray pre-defined dashboards and searches. To get the most of out this app, we recommend you also collect logs from Artifactory as well as Kubernetes.
96133

@@ -104,21 +141,18 @@ Collect the following details:
104141
* Port = **8000**
105142
* Your Username and Password for your JFrog Xray instance
106143

107-
108144
### Step 2: Collect Artifactory logs
109145

110146
We recommend collecting data from JFrog Artifactory so as to investigate sources of vulnerable artifacts and who is using them. This is done by correlating Xray logs with Artifactory logs.
111147

112148
To do so, follow the instructions in [Collect Logs for Artifactory](/docs/integrations/app-development/jfrog-artifactory#collecting-logs).
113149

114-
115150
### Step 3: Collect Kubernetes logs
116151

117152
If you have set up a Docker repository in Artifactory and are running containers in a Kubernetes cluster, we recommend collecting data from your Kubernetes cluster so as to understand all vulnerable containers running in production.
118153

119154
To perform this setup, follow the instructions in [Collect Logs for Kubernetes](/docs/integrations/containers-orchestration/kubernetes#collecting-metrics-and-logs-for-the-kubernetes-app).
120155

121-
122156
### Step 4: Add Hosted Collector and HTTP Source
123157

124158
In this step you set up a hosted Sumo Logic collector and HTTP source to collect JFrog Xray logs.
@@ -131,7 +165,6 @@ To add a hosted collector and HTTP source:
131165
1. Create a new Sumo Logic hosted collector by performing the steps in [Configure a Hosted Collector](/docs/send-data/hosted-collectors/configure-hosted-collector).
132166
2. Create a new HTTP source on the hosted collector created above by following instructions in [HTTP Logs and Metrics Source]](/docs/send-data/hosted-collectors/http-source/logs-metrics).
133167

134-
135168
### Step 5: Set up a collection method for JFrog Xray
136169

137170
This section covers the various ways in which to collect logs from JFrog Xray and send them to Sumo Logic. The logs are then shown in dashboards as part of the JFrog Xray App. You can configure a Sumo Logic collector for JFrog Xray in Amazon Web Services (AWS) using AWS Lambda service, or use a script on a Linux machine with a cron job. Choose the method that best suits your environment:
@@ -144,18 +177,15 @@ In this collection method, you deploy the SAM application, which creates the nec
144177
To deploy the Sumo Logic JFrog xray SAM Application, do the following:
145178

146179
1. Go to [https://serverlessrepo.aws.amazon.com/applications](https://serverlessrepo.aws.amazon.com/applications).
147-
2. Search for **sumologic-jfrog-xray** and make sure the checkbox **Show apps that create custom IAM roles or resource policies** is checked, and click the app link when it appears.
148-
180+
1. Search for **sumologic-jfrog-xray** and make sure the checkbox **Show apps that create custom IAM roles or resource policies** is checked, and click the app link when it appears.
149181
1. When the page for the Sumo app appears, click **Deploy**.
150-
2. Go to the **AWS Lambda > Functions >** **Application Settings** panel, and enter parameters for the following fields:
151-
* **HTTPLogsEndpoint**: Copy and paste the URL for the HTTP log source from [Step 4](#step-4-add-hosted-collector-and-http-source).
152-
* **Hostname**: Copy and paste the Hostname from [Step 1](#step-1-collect-jfrog-xray-instance-details).
153-
* **Port**: Copy and paste the Port from [Step 1](#step-1-collect-jfrog-xray-instance-details).
154-
* **Username**: Copy and paste the Username from [Step 1](#step-1-collect-jfrog-xray-instance-details).
155-
* **Password**: Copy and paste the Password from [Step 1](#step-1-collect-jfrog-xray-instance-details).
156-
157-
1. Click **Deploy.**
158-
182+
1. Go to the **AWS Lambda > Functions >** **Application Settings** panel, and enter parameters for the following fields:
183+
* **HTTPLogsEndpoint**. Copy and paste the URL for the HTTP log source from [Step 4](#step-4-add-hosted-collector-and-http-source).
184+
* **Hostname**. Copy and paste the Hostname from [Step 1](#step-1-collect-jfrog-xray-instance-details).
185+
* **Port**. Copy and paste the Port from [Step 1](#step-1-collect-jfrog-xray-instance-details).
186+
* **Username**. Copy and paste the Username from [Step 1](#step-1-collect-jfrog-xray-instance-details).
187+
* **Password**. Copy and paste the Password from [Step 1](#step-1-collect-jfrog-xray-instance-details).
188+
5. Click **Deploy**.
159189

160190
#### Optional - Configure multiple JFrog Xray instances
161191

@@ -182,7 +212,6 @@ sudo su <user_name>
182212
```
183213
* A Linux machine compatible with either Python 3.7 or Python 2.7
184214

185-
186215
#### Step 1. Configure the script on a Linux machine
187216

188217
This task shows you how to install the script on a Linux machine.
@@ -191,29 +220,27 @@ For Python 3 you will use pip3 install **sumologic-jfrog-xray** (step 3 in the f
191220

192221
To deploy the script, do the following:
193222
1. If **pip** is not already installed, follow the instructions in the [pip documentation](https://pip.pypa.io/en/stable/installing/) to download and install **pip**.
194-
2. Log in to a Linux machine compatible with either Python 3.7 or Python 2.7.
195-
3. Do one of the following:
196-
* For Python 2 - run the following command:
223+
1. Log in to a Linux machine compatible with either Python 3.7 or Python 2.7.
224+
1. Do one of the following:
225+
* For Python 2 - run the following command:
197226
```bash
198227
pip install sumologic-jfrog-xray
199228
```
200-
* For Python 3 - run the following command:
229+
* For Python 3 - run the following command:
201230
```bash
202231
pip3 install sumologic-jfrog-xray
203232
```
204-
1. Create a configuration file **jfrogxraycollector.yaml** in the home directory as shown below, and fill in the parameter `<Variables>` where indicated.
205-
206-
1. Create a cron job to run the collector every 5 minutes, (use the crontab -e option), in one of the following ways:
207-
* For Python 2 - add the following line in your crontab:
233+
4. Create a configuration file **jfrogxraycollector.yaml** in the home directory as shown below, and fill in the parameter `<Variables>` where indicated.
234+
5. Create a cron job to run the collector every 5 minutes, (use the crontab -e option), in one of the following ways:
235+
* For Python 2 - add the following line in your crontab:
208236
```sql
209237
*/5 * * * * /usr/bin/python -m sumojfrogxray.main > /dev/null 2>&1
210238
```
211-
* For Python 3 - add the following line in your crontab:
239+
* For Python 3 - add the following line in your crontab:
212240
```sql
213241
*/5 * * * * /usr/bin/python3 -m sumojfrogxray.main > /dev/null 2>&1
214242
```
215243

216-
217244
**Optional - Configure collection for multiple projects**
218245

219246
If you have multiple projects from which you want to collect logs and send to Sumo Logic, perform the following task.
@@ -241,10 +268,9 @@ This section provides a list of variables for Jfrog Xray that you can define in
241268
| TIMEOUT in Collection Section | Request timeout used by the requests library. |
242269
| HTTP_LOGS_ENDPOINT in Sumo Logic Section | HTTP source endpoint URL created in Sumo Logic for ingesting logs. |
243270

244-
245271
</details>
246272

247-
## Troubleshooting
273+
### Troubleshooting
248274

249275
This section shows you how to run the function manually and then verify that log messages are being sent from JFrog Xray.
250276

@@ -265,11 +291,13 @@ sudo yum -y install gcc
265291
sudo yum install python-devel
266292
```
267293

268-
## Installing the JFrog Xray app
294+
### Installing the JFrog Xray app
269295

270296
import AppInstall2 from '../../reuse/apps/app-install-v2.md';
271297

272298
<AppInstall2/>
299+
</TabItem>
300+
</Tabs>
273301

274302
## Viewing JFrog Xray dashboards
275303

0 commit comments

Comments
 (0)