<?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 Newbie to Splunk  - Feild Extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Newbie-to-Splunk-Feild-Extraction/m-p/63876#M15776</link>
    <description>&lt;P&gt;I'm new to the Splunk Search and trying to learn it. I am not from Scripting BG so need help here. I have extraction configured for specific searches/reports now when i want to use the same in another report it 1) that Field extraction is not in the list 2) It is listed as a different name and I want it to be listed with a different name when another report sent for exmple:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;INT - extracts the Interfaces and I write a query like - index=ABC 
"duplex"| top hostname INT  - where log is:&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;2013-06-14T07:40:10+00:00 10.51.88.34 Jun 14 09:40:09.253 CEST: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on GigabitEthernet0/2 (not half duplex), with ABCD FastEthernet2/0 (half duplex)&lt;/P&gt;

&lt;P&gt;now I would want to use same INT Extractor listed in a different report with the name as INTERFACE - Is it possible?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2013 07:42:05 GMT</pubDate>
    <dc:creator>Ak_C</dc:creator>
    <dc:date>2013-06-14T07:42:05Z</dc:date>
    <item>
      <title>Newbie to Splunk  - Feild Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Newbie-to-Splunk-Feild-Extraction/m-p/63876#M15776</link>
      <description>&lt;P&gt;I'm new to the Splunk Search and trying to learn it. I am not from Scripting BG so need help here. I have extraction configured for specific searches/reports now when i want to use the same in another report it 1) that Field extraction is not in the list 2) It is listed as a different name and I want it to be listed with a different name when another report sent for exmple:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;INT - extracts the Interfaces and I write a query like - index=ABC 
"duplex"| top hostname INT  - where log is:&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;2013-06-14T07:40:10+00:00 10.51.88.34 Jun 14 09:40:09.253 CEST: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on GigabitEthernet0/2 (not half duplex), with ABCD FastEthernet2/0 (half duplex)&lt;/P&gt;

&lt;P&gt;now I would want to use same INT Extractor listed in a different report with the name as INTERFACE - Is it possible?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 07:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Newbie-to-Splunk-Feild-Extraction/m-p/63876#M15776</guid>
      <dc:creator>Ak_C</dc:creator>
      <dc:date>2013-06-14T07:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie to Splunk  - Feild Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Newbie-to-Splunk-Feild-Extraction/m-p/63877#M15777</link>
      <description>&lt;P&gt;I don't quite understand your question do you just want to rename the field INT (probably not)?  Then you can do the following: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ABC "duplex"| top hostname INT | rename INT as INTERFACE 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the INT/INTERFACE field ist missing then the field extractions for that source/sourcetype are not configured yet.&lt;BR /&gt;
-&amp;gt; I recommend you read the documentation about transforms &amp;amp; props&lt;/P&gt;

&lt;P&gt;If the filed already exists but is called INTERFACE instead of INT you can create the following ( maybe after reading about props.conf) stanza in props.conf&lt;BR /&gt;
$SPLUNK_HOME/etc/system/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mySourceType]
FIELDALIAS-extract_ip = INTERFACE AS INT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you need more help let me know&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 11:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Newbie-to-Splunk-Feild-Extraction/m-p/63877#M15777</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-06-14T11:46:24Z</dc:date>
    </item>
  </channel>
</rss>

