Skip to content
IRI Logo
Solutions Products
  • Solutions
  • Products
  • Blog
  • BI
  • Big Data
  • DQ
  • ETL
  • IRI
    • IRI Business
    • IRI Workbench
  • Mask
  • MDM
    • Master Data Management
    • Metadata Management
  • Migrate
    • Data Migration
    • Sort Migration
  • Test Data
  • Transform
  • VLDB
  • VLOG

Preparing Unstructured Data for Splunk

  • by Kyle Grosjean

Introduction: This example demonstrates an older method of using the unstructured data edition of IRI NextForm to extract dark data and prepare it for ingestion in Splunk for indexing and visualization purposes. As you will read, NextForm would process the data outside of Splunk and create a CSV file for input. IRI now offers a new add-on for seamless data preparation, indexing, and visualization in Splunk and information on the add-on is found here.

Splunk is not designed to index data from most unstructured, “dark data” text sources, as they are in highly encoded file formats. Attempting to index such files results in an excessive amount of encoding language that gets indexed instead of the relevant character data. Thus, Splunk cannot readily access meaningful data from these file types.

The Unstructured Data edition of IRI NextForm, however, can extract specific character data from doc/x, ppt/x, xls/x, pdf, rtf, txt, xml, and email repositories. Using regular expressions, the user can find and extract data that conforms to the desired pattern; for example, a telephone number, email address, or credit card number. And custom regular expressions can be used to extract specific data patterns.

All data matching the search pattern is written to a delimited text file. Once in that structured format, Splunk can automatically parse the values for quick and easy indexing. As a forensic aside, that results file can also include metadata information on each source from which the data was extracted, including the file path, file size, and date of creation.

In the how-to example below, unstructured data will be extracted from various file formats, including docx, PDF, ppt, and xlsx:

 


 

1) Gather or identify all the files you wish to search through within a folder. The wizard extracts and structures data in the following file formats: doc, docx, eml, pdf, ppt, pptx, rtf, txt, xls, xlsx, and xml.

image-1

 

2) Create a new project in the IRI Workbench.

image-2

3) Start the New Data Restructuring tool under the IRI icon.

image-3

4) Specify the top level UNC or folder name containing all the sub-folders with files you wish to search.

image-4

5) Select the file types you wish to search by selecting the corresponding extensions.

image-5

6) Select the metadata you would like to include in the output by checking the corresponding field types.

image-7

7) Name the data you are searching for in the Column Name text box. In the Search Pattern text box enter the regular expression that will identify the data structure you are searching for. In this example, email addresses will be extracted, and clicking the help icon at the bottom-left of the form reveals a list of common regular expressions.

image-8

8) Insert the pattern to the table of regular expressions that will be used during the search/extract operation.

image-9

9) Specify the delimiter to be used in the text file, then insert a comma.

10) Browse for the location of the project created in the beginning to store the output, and enter a name for the text file (.txt). Do the same for the data definition file (.ddf), which gets created at the same time. Both names can be the same since they have different extensions, but make sure the names and extensions are correct before continuing.

image-10

11)  Examine the preview of data matching the search criteria, as well as the metadata from each source you wanted.

image-11

12) Effect the extraction if you’re satisfied with the previewed results. The target files will be generated in the designated project folder.

image-12

13)   Open the text file and type the names of each field from left to right, separated by commas. The field names must be inserted on the first line above the data to be recognized as headers.

14) Save the file with a .csv extension.

15) Index the reformatted .csv file into Splunk, and click save to complete the upload. The CSV format will be easily recognized and indexed without any configuration.

image-19

16)  View the data by searching for the source. Enter Source = “File Path to CSV” in the search bar to view the data.

image-20

17) Visualize the data as you see fit, and even see your charts in an internal browser in the same Eclipse IDE (IRI Workbench), so you can see the results side-by-side with your data preparation activities.

image-21This Splunk chart displays the number of instances over time. Contact support@iri.com and reference this article if you have any technical questions.

 

Faster Big Data Prep for Tableau
Database Profiling in IRI Workbench
csv dark data DDF doc docx eml IRI NextForm metadata pdf ppt pptx regular expressions rtf Splunk txt unstructured data xls xlsx xml

Related articles

Prepare and Protect Data for…
The IRI Platform
Real-time Database Data Replication
Automating IRI Jobs Using File…
What’s New in CoSort 10.5?
An IRI Voracity Use Case…
Introducing the ASN.1 Format and…
Which IRI Data Masking Tool…
SortCL-Compatible Excel Data Processing Examples
Processing Data in, and for,…
IRI Product Nomenclature & Architecture
3 COMMENTS
  • Voracity Add-On für Splunk + Splunk Universal Forwarder für schnellste Datenintegration und Datenmaskierung - PresseControl
    December 31, 2019 at 5:45 am
    Reply

    […] Die resultierende Flat-File enthält alle Daten (und optionale Metadaten), die Splunk leicht indizieren kann…. und sogar in der gleichen GUI mit Ihren Datenaufbereitungs- und Verwaltungsaktivitäten anzeigen kann, siehe weitere Details in unserem Blog hier. […]

  • Voracity Add-On für Splunk + Splunk Universal Forwarder für schnellste Datenintegration und Datenmaskierung - MyNewsChannel
    September 6, 2019 at 7:39 am
    Reply

    […] Die resultierende Flat-File enthält alle Daten (und optionale Metadaten), die Splunk leicht indizieren kann…. und sogar in der gleichen GUI mit Ihren Datenaufbereitungs- und Verwaltungsaktivitäten anzeigen kann, siehe weitere Details in unserem Blog hier. […]

  • Voracity Add-On für Splunk + Splunk Universal Forwarder für schnellste Datenintegration und Datenmaskierung - newsonline24
    September 6, 2019 at 7:38 am
    Reply

    […] Die resultierende Flat-File enthält alle Daten (und optionale Metadaten), die Splunk leicht indizieren kann…. und sogar in der gleichen GUI mit Ihren Datenaufbereitungs- und Verwaltungsaktivitäten anzeigen kann, siehe weitere Details in unserem Blog hier. […]

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Big Data 66
  • Business Intelligence (BI) 77
  • Data Masking/Protection 163
  • Data Quality (DQ) 41
  • Data Transformation 94
  • ETL 122
  • IRI 229
    • IRI Business 86
    • IRI Workbench 162
  • MDM 37
    • Master Data Management 12
    • Metadata Management 25
  • Migration 65
    • Data Migration 60
    • Sort Migration 6
  • Test Data 102
  • VLDB 78
  • VLOG 40

Tracking

© 2025 Innovative Routines International (IRI), Inc., All Rights Reserved | Contact