Use an Artifact Step

Artifacts are pieces of information that you want to see specifically from the greater set of information the workflow gathered. Using markdown format and input templating, artifacts are tailor-made cards that show you exactly what you need to see, instead of requiring that you comb through all of the job data to find what you need.

Because they are highly useful for reports, Artifacts have their own section in Job Details.

Use Case Example

Say that you are monitoring events from a certain website. You can configure an artifact to gather strings of information and produce an actual picture as output in the form of a file based on variables you defined during trigger configuration.

Add an Artifact Step

In the step type panel, click Artifact. Then follow these steps:

  1. Name the artifact. Make this something unique in order to identify it in later steps and on the Job Details page.
  2. Choose the artifact type from the following:
    • Markdown Card: Use custom Markdown to format output.
  3. Configure the input as prompted by the artifact type.
    • File artifacts require you to define search variables to trigger file generation, as well as variables to include within file contents.
  4. Click Continue to save the step to your workflow.

Configure Markdown Cards

If you choose custom Markdown for your artifact type, you must configure the “Output Format” field with your preferred content. Before publishing the step, InsightConnect will provide you with a preview of the artifact for you to review. You can make any changes afterward.

Your preferred content is up to your own needs. Format your content as needed and include previous step variables in the handlebars format: {{[StepName].[VariableName]}}. When your workflow runs a job, the artifact will automatically replace the variable text with the correct data.

When you’ve finished a first draft of your Markdown content:

  1. Click the Add Artifact button to see a preview of your artifact.
  2. If you need to make any adjustments or edits to the markdown, click the Previous button to return to the configuration panel.
  3. When satisfied with your custom artifact, click Add Artifact from the preview panel to publish the step.

Use the quick Markdown guide below to learn how to format your Markdown Card Artifacts in InsightConnect.

insightConnect Markdown Quick Guide
1
# First-Level Header
2
### Third-Level Header
3
#### Fourth-Level Header
4
Note that our first and second-level headers are interchangeable.
5
6
# Text Emphasis
7
**Bold with double asterisks**
8
__Or bold with double underscores__
9
*Italicize with single asterisks*
10
_Or italicize with single underscores_
11
12
# Add InsightConnect Variables
13
Add variables from previous steps in your workflow with the Handlebars syntax, like {{[StepName].[VariableName]}}. InsightConnect will replace the variable placeholder with the variable data within the Job Details artifact.
14
15
# Lists
16
* Use single dashes or asterisks followed by one space to create unordered lists
17
- You can use + signs as well but consider keeping your Markdown uniform
18
* To indent, type two spaces and then place your desired list marker
19
20
Leave spaces between lists to keep formatting clean.
21
1. Make ordered lists by typing out the numbers for each item in the list
22
2. No extra finagling needed
23
* To indent or make subitems in an ordered list, use the same indenting rules as in unordered lists
24
1. You can mix and match ordered or unordered lists and nest them as needed
25
26
# Nested or Indented Content
27
> Nest content with greater-than signs
28
>> You can nest content with multiple signs
29
30
# Indicate Preformatted Text or Code
31
Use single backticks around text you want to display as `code` or `preformatted text`
32
33
# Horizontal Lines
34
---
35
Add horizontal lines to break up content with triple dashes or asterisks
36
***

The above Markdown sample yields this output in InsightConnect:

For more information on writing markdown, check out https://markdown-it.github.io/

Additional Resources

If you have further questions relating to InsightConnect, try starting a discussion in the Rapid7 Discuss community forum.

Related Posts