<?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 URL into a new field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489940#M136837</link>
    <description>&lt;P&gt;You have not given us anything to work with (sample events, field names, and explanation of which text to clip), so, short of that, I can VERY highly recommend the &lt;CODE&gt;URL Toolbox&lt;/CODE&gt; app:&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/2734/"&gt;https://splunkbase.splunk.com/app/2734/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 15:13:08 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-11-25T15:13:08Z</dc:date>
    <item>
      <title>How to extract URL into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489937#M136834</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;What would be a command to extract the url and create a new field from Cisco eStreamer logs using the rex command?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489937#M136834</guid>
      <dc:creator>Vfinney</dc:creator>
      <dc:date>2019-11-25T14:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract URL into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489938#M136835</link>
      <description>&lt;P&gt;HI @Vfinney,&lt;BR /&gt;
the command is rex, could you share an example and what you want to extract?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:15:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489938#M136835</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-25T14:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract URL into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489939#M136836</link>
      <description>&lt;P&gt;If you're looking for the syntax for the command, it's in the Splunk Doc below. If you'd like help with the regex and the command please provide a few sample events.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Rex"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Rex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 15:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489939#M136836</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-11-25T15:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract URL into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489940#M136837</link>
      <description>&lt;P&gt;You have not given us anything to work with (sample events, field names, and explanation of which text to clip), so, short of that, I can VERY highly recommend the &lt;CODE&gt;URL Toolbox&lt;/CODE&gt; app:&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/2734/"&gt;https://splunkbase.splunk.com/app/2734/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 15:13:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489940#M136837</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-25T15:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract URL into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489941#M136838</link>
      <description>&lt;P&gt;Sorry... data certainly would help. Not sure what I was thinking. &lt;/P&gt;

&lt;P&gt;rec_type=71 tcp_flags=0 sec_intel_event=No monitor_rule_8=0 client_version="" monitor_rule_7=N/A monitor_rule_4=N/A snmp_out=0 monitor_rule_2=N/A ssl_server_name="" monitor_rule_1=N/A dest_pkts=8 sensor=ipkdol02p last_pkt_sec=1574690104 ssl_flow_error=0 ssl_url_category=0 src_ip=10.140.6.154 ssl_rule_id=0 dns_rec_id=0 src_port=59057 ssl_cert_fingerprint=0000000000000000000000000000000000000000 monitor_rule_6=N/A rec_type_simple=RNA event_desc="Flow Statistics" first_pkt_sec=1574690104 security_context=00000000000000000000000000000000 netflow_src=00000000-0000-0000-0000-000000000000 has_ipv6=1 monitor_rule_5=N/A ssl_actual_action=Unknown src_autonomous_system=0 src_bytes=863 connection_id=40461 event_usec=0 dest_autonomous_system=0 dest_mask=0 monitor_rule_3=N/A dest_ip_country="united states" iface_ingress=vrf client_app="SSL client" user_agent="" ssl_flow_status=Unknown snmp_in=0 file_count=0 dest_ip=216.58.193.142 ssl_ticket_id=0000000000000000000000000000000000000000 dest_tos=0 fw_rule_reason=N/A sinkhole_uuid=00000000-0000-0000-0000-000000000000 fw_policy=00000000-0000-0000-0000-00005dd129e8 sec_intel_ip=N/A ssl_flow_messages=0 ssl_cipher_suite=TLS_NULL_WITH_NULL_NULL http_referrer="" src_mask=0 legacy_ip_address=0.0.0.0 ssl_version=Unknown ssl_flow_flags=0 event_sec=1574693323 dns_query="" url_category="Search Engines" ip_proto=TCP dest_port=443 url=&lt;A href="https://fcmatch.google.com" target="_blank"&gt;https://fcmatch.google.com&lt;/A&gt; ssl_server_cert_status="Not Checked" mac_address=00:00:00:00:00:00 netbios_domain="" dns_ttl=0 src_tos=0 ssl_policy_id=00000000000000000000000000000000 ssl_session_id=0000000000000000000000000000000000000000000000000000000000000000 iface_egress=outside num_ioc=0 referenced_host="" event_type=1003 dest_bytes=4538 dns_resp_id=0 user="No Authentication Required" ip_layer=0 fw_rule="Default Action" fw_rule_action=Allow rec_type_desc="Connection Statistics" ssl_expected_action=Unknown app_proto=HTTPS vlan_id=0 sec_zone_ingress=Internal-ASA sec_zone_egress=External-ASA event_subtype=1 http_response=0 web_app=Google url_reputation="Well known" src_ip_country=unknown src_pkts=8 instance_id=1 ips_count=0&lt;/P&gt;

&lt;P&gt;rec_type=71 tcp_flags=0 sec_intel_event=No monitor_rule_8=0 client_version="" monitor_rule_7=N/A monitor_rule_4=N/A snmp_out=0 monitor_rule_2=N/A ssl_server_name="" monitor_rule_1=N/A dest_pkts=10 sensor=ipkdol02p last_pkt_sec=1574690104 ssl_flow_error=0 ssl_url_category=0 src_ip=10.140.6.154 ssl_rule_id=0 dns_rec_id=0 src_port=59066 ssl_cert_fingerprint=0000000000000000000000000000000000000000 monitor_rule_6=N/A rec_type_simple=RNA event_desc="Flow Statistics" first_pkt_sec=1574690104 security_context=00000000000000000000000000000000 netflow_src=00000000-0000-0000-0000-000000000000 has_ipv6=1 monitor_rule_5=N/A ssl_actual_action=Unknown src_autonomous_system=0 src_bytes=2750 connection_id=40463 event_usec=0 dest_autonomous_system=0 dest_mask=0 monitor_rule_3=N/A dest_ip_country="united states" iface_ingress=vrf client_app="SSL client" user_agent="" ssl_flow_status=Unknown snmp_in=0 file_count=0 dest_ip=198.8.70.129 ssl_ticket_id=0000000000000000000000000000000000000000 dest_tos=0 fw_rule_reason=N/A sinkhole_uuid=00000000-0000-0000-0000-000000000000 fw_policy=00000000-0000-0000-0000-00005dd129e8 sec_intel_ip=N/A ssl_flow_messages=0 ssl_cipher_suite=TLS_NULL_WITH_NULL_NULL http_referrer="" src_mask=0 legacy_ip_address=0.0.0.0 ssl_version=Unknown ssl_flow_flags=0 event_sec=1574693323 dns_query="" url_category="Web Advertisements" ip_proto=TCP dest_port=443 url=&lt;A href="https://p.rfihub.com" target="_blank"&gt;https://p.rfihub.com&lt;/A&gt; ssl_server_cert_status="Not Checked" mac_address=00:00:00:00:00:00 netbios_domain="" dns_ttl=0 src_tos=0 ssl_policy_id=00000000000000000000000000000000 ssl_session_id=0000000000000000000000000000000000000000000000000000000000000000 iface_egress=outside num_ioc=0 referenced_host="" event_type=1003 dest_bytes=4843 dns_resp_id=0 user="No Authentication Required" ip_layer=0 fw_rule="Default Action" fw_rule_action=Allow rec_type_desc="Connection Statistics" ssl_expected_action=Unknown app_proto=HTTPS vlan_id=0 sec_zone_ingress=Internal-ASA sec_zone_egress=External-ASA event_subtype=1 http_response=0 web_app="Rocket Fuel" url_reputation="Benign sites with security risks" src_ip_country=unknown src_pkts=11 instance_id=1 ips_count=0&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:08:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489941#M136838</guid>
      <dc:creator>Vfinney</dc:creator>
      <dc:date>2020-09-30T03:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract URL into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489942#M136839</link>
      <description>&lt;P&gt;Splunk should be automatically extracting all those field for you because of the "=" delim? I just tested the two lines you sent and everything was extracted automatically.&lt;/P&gt;

&lt;P&gt;Either way, the rex command would be something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt;
| rex field=_raw "\burl\b\=(?&amp;lt;url&amp;gt;[^ ]+)\s"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2019 17:36:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489942#M136839</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-11-25T17:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract URL into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489943#M136840</link>
      <description>&lt;P&gt;If you set &lt;CODE&gt;KV_MODE=auto&lt;/CODE&gt; for your &lt;CODE&gt;sourcetype&lt;/CODE&gt; on your Search Head, this will be done for you (along with the other fields).  To do it manually, just add this to your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "url=(?&amp;lt;url&amp;gt;\S+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Nov 2019 17:39:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489943#M136840</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-25T17:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract URL into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489944#M136841</link>
      <description>&lt;P&gt;HI @Vfinney,&lt;BR /&gt;
try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;url\=(?&amp;lt;url&amp;gt;[^ ]*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/OiAXaV/1"&gt;https://regex101.com/r/OiAXaV/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 09:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URL-into-a-new-field/m-p/489944#M136841</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-26T09:57:29Z</dc:date>
    </item>
  </channel>
</rss>

