<?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: Field value combine from auto extracted value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-value-combine-from-auto-extracted-value/m-p/382983#M169616</link>
    <description>&lt;P&gt;hello there,&lt;/P&gt;

&lt;P&gt;you can create a string from both fields.&lt;BR /&gt;
something like this:&lt;BR /&gt;
&lt;CODE&gt;... | eval combined = Protocol. "/" .RemotePort" ...&lt;/CODE&gt;&lt;BR /&gt;
try this search anywhere:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=1 
| eval data="TCP,8000 UDP,514 TCP,9997 UDP,1514"
| makemv delim=" " data
| mvexpand data
| rex field=data "(?&amp;lt;Protocol&amp;gt;\w+),(?&amp;lt;Port&amp;gt;\d+)"
| fields Port Protocol
| eval combined = Protocol. "/" .Port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
    <pubDate>Sat, 05 May 2018 12:14:16 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2018-05-05T12:14:16Z</dc:date>
    <item>
      <title>Field value combine from auto extracted value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-value-combine-from-auto-extracted-value/m-p/382982#M169615</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;We have endpoint logs by default logs are in JSON format field which are auto extracted  however we have two field name Protocol(tcp,udp etc) and RemotePort(443,8080 ,53 etc) . Actually we want dest_port=Protocol/RemotePort Example output tcp/443.&lt;/P&gt;

&lt;P&gt;Sample log&lt;/P&gt;

&lt;P&gt;{"ConfigBuild":"1000.1.0006507.1","ConfigStateHash":"118807017","ConnectionDirection":"0","ConnectionFlags":"0","ContextProcessId":"124283148110857432","ContextTimeStamp":"1122143620.880","EffectiveTransmissionClass":"3","Entitlements":"15","InContext":"0","LocalAddressIP4":"10.0.0.34","LocalPort":"52022","Protocol":"6","RemoteAddressIP4":"10.0.0.1","RemotePort":"443","aid":"a50f3aab996345f46510ec2f4c12b399","aip":"13.70.190.121","cid":"07b2sf7ss17147df10j15ggb6d7010tc","event_platform":"Win","event_simpleName":"NetworkConnectIP4","id":"ac8b80b5-4s36-10f8-000c-061014bed5be","name":"NetworkConnectIP4V5","timestamp":"1525175921212"}&lt;/P&gt;

&lt;P&gt;Can we use existing extracted fields which are Protocol and RemotePort somehow map with desired field which is dest_port=Protocol/RemotePort   or kindly help me to extract the field value.&lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:25:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-value-combine-from-auto-extracted-value/m-p/382982#M169615</guid>
      <dc:creator>sumitkathpal292</dc:creator>
      <dc:date>2020-09-29T19:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Field value combine from auto extracted value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-value-combine-from-auto-extracted-value/m-p/382983#M169616</link>
      <description>&lt;P&gt;hello there,&lt;/P&gt;

&lt;P&gt;you can create a string from both fields.&lt;BR /&gt;
something like this:&lt;BR /&gt;
&lt;CODE&gt;... | eval combined = Protocol. "/" .RemotePort" ...&lt;/CODE&gt;&lt;BR /&gt;
try this search anywhere:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=1 
| eval data="TCP,8000 UDP,514 TCP,9997 UDP,1514"
| makemv delim=" " data
| mvexpand data
| rex field=data "(?&amp;lt;Protocol&amp;gt;\w+),(?&amp;lt;Port&amp;gt;\d+)"
| fields Port Protocol
| eval combined = Protocol. "/" .Port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Sat, 05 May 2018 12:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-value-combine-from-auto-extracted-value/m-p/382983#M169616</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-05-05T12:14:16Z</dc:date>
    </item>
  </channel>
</rss>

