<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How To Eval Filename As A New Field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-To-Eval-Filename-As-A-New-Field/m-p/110775#M28975</link>
    <description>&lt;P&gt;Thanks @awitzman ! it worked! &lt;BR /&gt;
I thought it wouldn't work for multiple files, but seems ok without a regex.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jan 2015 19:12:31 GMT</pubDate>
    <dc:creator>vtsguerrero</dc:creator>
    <dc:date>2015-01-23T19:12:31Z</dc:date>
    <item>
      <title>How To Eval Filename As A New Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-To-Eval-Filename-As-A-New-Field/m-p/110771#M28971</link>
      <description>&lt;P&gt;Shoud it be done in the props.conf stanza at the moment of indexing?&lt;BR /&gt;
I'm gonna have multiple .txt files indexed and later for a dashboard I need to get these filename to compare each other's values.&lt;BR /&gt;
Is there a way to create a new field using eval for these filenames?&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;BR /&gt;
- Vinicius Guerrero&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-To-Eval-Filename-As-A-New-Field/m-p/110771#M28971</guid>
      <dc:creator>vtsguerrero</dc:creator>
      <dc:date>2015-01-23T18:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: How To Eval Filename As A New Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-To-Eval-Filename-As-A-New-Field/m-p/110772#M28972</link>
      <description>&lt;P&gt;The filename should show up in the &lt;CODE&gt;source&lt;/CODE&gt; field, right? Why not just use it from there?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:56:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-To-Eval-Filename-As-A-New-Field/m-p/110772#M28972</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2015-01-23T18:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How To Eval Filename As A New Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-To-Eval-Filename-As-A-New-Field/m-p/110773#M28973</link>
      <description>&lt;P&gt;But will I be able to table it as a result? Is there any example on how to use it?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-To-Eval-Filename-As-A-New-Field/m-p/110773#M28973</guid>
      <dc:creator>vtsguerrero</dc:creator>
      <dc:date>2015-01-23T18:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: How To Eval Filename As A New Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-To-Eval-Filename-As-A-New-Field/m-p/110774#M28974</link>
      <description>&lt;P&gt;It's a field like any other field you might have. You can include it in a table ( &lt;CODE&gt;table source field1 field2...&lt;/CODE&gt; ), you can use it to group your results ( &lt;CODE&gt;stats sum(field1) by source&lt;/CODE&gt; ), you can create another field by applying a regex to it ( &lt;CODE&gt;rex field=source "regex-goes-here"&lt;/CODE&gt; ). Anything you can do with a text field you can do with &lt;CODE&gt;source&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 19:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-To-Eval-Filename-As-A-New-Field/m-p/110774#M28974</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2015-01-23T19:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: How To Eval Filename As A New Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-To-Eval-Filename-As-A-New-Field/m-p/110775#M28975</link>
      <description>&lt;P&gt;Thanks @awitzman ! it worked! &lt;BR /&gt;
I thought it wouldn't work for multiple files, but seems ok without a regex.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 19:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-To-Eval-Filename-As-A-New-Field/m-p/110775#M28975</guid>
      <dc:creator>vtsguerrero</dc:creator>
      <dc:date>2015-01-23T19:12:31Z</dc:date>
    </item>
  </channel>
</rss>

