Parse a file
- UpdatedAug 3, 2023
- 3 minutes to read
- Vancouver
- Service Mapping
As part of creating or modifying a discovery pattern, you can use the Parse file operation to extract information from a file and create variables to contain the extracted information.
Before you begin
Role required: pd_admin
Navigate to the relevant pattern step:
- Select the relevant pattern step or click
to add a step.
Basic knowledge of programming is desirable.
About this task
Alternatively, you can use traffic-based connections to create a parse file step in the relevant CI pattern as described in Fine-tune patterns using traffic-based discovery.
Procedure
Example
You can use the Parse File operation to extract data on prices and authors from an xml file using the XML File parsing strategy.

What to do next
- Continue editing the pattern by adding a new step and defining its operation or
- Finalize the pattern.