<?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: Validating the file name in splunk in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Validating-the-file-name-in-splunk/m-p/332262#M4905</link>
    <description>&lt;P&gt;Hey @mayurr98, not a list, but I've created dashboards per file. The Splunk picks up the file from the splunk server and ingests it. For that file that is being picked up, in that dashboard, I want to create a panel that basically checks to see if the file name conforms to the intended design&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2018 10:04:43 GMT</pubDate>
    <dc:creator>mahbs</dc:creator>
    <dc:date>2018-01-24T10:04:43Z</dc:date>
    <item>
      <title>Validating the file name in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Validating-the-file-name-in-splunk/m-p/332260#M4903</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I was just wondering, is there a way to validate the name of the file that is being ingested into splunk?&lt;/P&gt;

&lt;P&gt;So for example, if the file name is: "filename 20180124" I would have thought a regular expression could be used to validate that, but the question is, how do I use a query to display the file name into the console and then validate it?&lt;/P&gt;

&lt;P&gt;Could someone shed some light on this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 09:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Validating-the-file-name-in-splunk/m-p/332260#M4903</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2018-01-24T09:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Validating the file name in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Validating-the-file-name-in-splunk/m-p/332261#M4904</link>
      <description>&lt;P&gt;are you looking for a list of file names that are been index by Splunk?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 10:02:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Validating-the-file-name-in-splunk/m-p/332261#M4904</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-24T10:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Validating the file name in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Validating-the-file-name-in-splunk/m-p/332262#M4905</link>
      <description>&lt;P&gt;Hey @mayurr98, not a list, but I've created dashboards per file. The Splunk picks up the file from the splunk server and ingests it. For that file that is being picked up, in that dashboard, I want to create a panel that basically checks to see if the file name conforms to the intended design&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 10:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Validating-the-file-name-in-splunk/m-p/332262#M4905</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2018-01-24T10:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validating the file name in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Validating-the-file-name-in-splunk/m-p/332263#M4906</link>
      <description>&lt;P&gt;Is the filename in the source field (as usual)?&lt;/P&gt;

&lt;P&gt;Then you could do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...base search...
| eval validFileName=(if(match(source,"&amp;lt;validation regex&amp;gt;"),"Yes", "No"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jan 2018 10:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Validating-the-file-name-in-splunk/m-p/332263#M4906</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-01-24T10:10:04Z</dc:date>
    </item>
  </channel>
</rss>

