<?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 extract the application name from the log file path or process in a search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-application-name-from-the-log-file-path-or/m-p/128636#M34927</link>
    <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   index=myindex | eval [rest /services/search/jobs splunk_server=local | addinfo | where sid = info_sid | rename eai:acl.app as my_app_name | return my_app_name]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 May 2015 16:17:42 GMT</pubDate>
    <dc:creator>stephane_cyrill</dc:creator>
    <dc:date>2015-05-13T16:17:42Z</dc:date>
    <item>
      <title>How to extract the application name from the log file path or process in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-application-name-from-the-log-file-path-or/m-p/128634#M34925</link>
      <description>&lt;P&gt;My goal is to create an application list running from all servers in the form of table.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=unix* host=* sourcetype=ps  user="*" user=* NOT user=root
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This way I am getting all the processes owned by nonroot users. I am trying to identify application name (web,app and db) apache(with /app/apache/"application name", jboss application name (/app/jboss/servers/"app name" and db name (pmon).&lt;/P&gt;

&lt;P&gt;To all experts, is there any way to extract application/db name (web/app/db) using single search so that it can be presented as a table?&lt;/P&gt;

&lt;P&gt;Table format:&lt;/P&gt;

&lt;P&gt;Hostname          Webname               Applicationname                DBname&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 00:59:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-application-name-from-the-log-file-path-or/m-p/128634#M34925</guid>
      <dc:creator>vikasshinde</dc:creator>
      <dc:date>2015-04-07T00:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the application name from the log file path or process in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-application-name-from-the-log-file-path-or/m-p/128635#M34926</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=_source "/(?:(?:app/apache)|(?:app/jboss/servers)/(?&amp;amp;lt;app&amp;amp;gt;[^\]*)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 May 2015 15:28:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-application-name-from-the-log-file-path-or/m-p/128635#M34926</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-13T15:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the application name from the log file path or process in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-application-name-from-the-log-file-path-or/m-p/128636#M34927</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   index=myindex | eval [rest /services/search/jobs splunk_server=local | addinfo | where sid = info_sid | rename eai:acl.app as my_app_name | return my_app_name]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 May 2015 16:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-application-name-from-the-log-file-path-or/m-p/128636#M34927</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-05-13T16:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the application name from the log file path or process in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-application-name-from-the-log-file-path-or/m-p/128637#M34928</link>
      <description>&lt;P&gt;Please provide some small piece of logger to create exact regex&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 18:23:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-application-name-from-the-log-file-path-or/m-p/128637#M34928</guid>
      <dc:creator>regexcracker</dc:creator>
      <dc:date>2015-05-13T18:23:28Z</dc:date>
    </item>
  </channel>
</rss>

