icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading csvutils
SHA256 checksum (csvutils_03.tgz) 9c95b722cb01bd67c7178bea27cf0260a27d203f3906f674f2f1587e8397c6f6 SHA256 checksum (csvutils_02.tgz) d5879d78caf389331d70a1092150aa71353a215b08fc5ba933cef959af0a55f7
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

csvutils

This app has been archived. Learn more about app archiving.
Admins: Please read about Splunk Enterprise 8.0 and the Python 2.7 end-of-life changes and impact on apps and upgradeshere.
Overview
Details
CSV Utilities is a utility app with precisely one command so far, emailcsvs. Given a list of csvs that have been created with outputcsv, each of the csv files is attached to a message and mailed to the address provided.

Two commands so far.

matchfieldfromcsv:
Given the path to a csv file somewhere in SPLUNK_HOME, tag all events passed in with the values found in the specified field.
This is useful for counting matches of certain terms in raw in events, even if they can't easily be extracted into fields.
The raw text of each event will be tested for each value of field in the csv file, and if a match is found, that field is attached the event.

Example:
* | matchfieldfromcsv csv="/etc/apps/foo/test.csv" field="bar"
Example 2:
* [|inputlookup users | rename username as search | fields + search | format ] | matchfieldfromcsv csv="etc/apps/search/lookups/users.csv" field=username | stats count by username

emailcsvs:
Given a list of csvs that have been created with outputcsv, each of the csv files is attached to a message and mailed to the address provided.

Example:

my great search | outputcsv foo.csv | emailcsvs to="you@there.com" csvs="foo.csv"

or more complicated:

my great search | outputcsv foo.csv | append maxtime=3600 [search my other great search | outputcsv bar.csv] | emailcsvs to="you@there.com" csvs="foo.csv,bar.csv" delete_on_exit=true

I will add other commands as it comes up, or per suggestion.

Cheers,
Vincent
vincent.bumgarner@gmail.com

Release Notes

Version 0.3
July 27, 2011

Added matchfieldfromcsv.

Version 0.2
April 1, 2011

1
Install
347
Downloads
Share Subscribe LOGIN TO DOWNLOAD

Subscribe Share

AppInspect Tooling

Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
© 2005-2019 Splunk Inc. All rights reserved.
Splunk®, Splunk>®, Listen to Your Data®, The Engine for Machine Data®, Hunk®, Splunk Cloud™, Splunk Light™, SPL™ and Splunk MINT™ are trademarks and registered trademarks of Splunk Inc. in the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners.