<?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 part of a field which has hyphens? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-part-of-a-field-which-has-hyphens/m-p/625163#M51257</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252351"&gt;@SGL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2022 07:53:32 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-12-23T07:53:32Z</dc:date>
    <item>
      <title>How to extract part of a field which has hyphens?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-part-of-a-field-which-has-hyphens/m-p/624938#M51238</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I wanted to extract the field "login-first" and "delaccount" from result events. Following are 2 sample fields from the results logs.&lt;/P&gt;
&lt;P&gt;cf_app_name: AB123-login-first-pr&lt;/P&gt;
&lt;P&gt;cf_app_name: CD123-delaccount-pr&lt;/P&gt;
&lt;P&gt;Sample query used :&lt;/P&gt;
&lt;P&gt;index=preprod source=logmon env="preprod"&lt;/P&gt;
&lt;P&gt;Please help me to extract the fields.&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;SGL&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 14:46:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-part-of-a-field-which-has-hyphens/m-p/624938#M51238</guid>
      <dc:creator>SGL</dc:creator>
      <dc:date>2022-12-21T14:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract part of a field which has hyphens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-part-of-a-field-which-has-hyphens/m-p/624943#M51239</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252351"&gt;@SGL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to help you in field extraction is mandatory to have some sample of your logs to create a regex.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 08:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-part-of-a-field-which-has-hyphens/m-p/624943#M51239</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-12-21T08:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract part of a field which has hyphens?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-part-of-a-field-which-has-hyphens/m-p/625059#M51242</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252351"&gt;@SGL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the following regex helps you.&lt;BR /&gt;&lt;BR /&gt;| rex field=cf_app_name "(?&amp;lt;new_field&amp;gt;(?&amp;lt;=-).*?(?=-pr))"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helps, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manasa&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 09:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-part-of-a-field-which-has-hyphens/m-p/625059#M51242</guid>
      <dc:creator>Manasa_401</dc:creator>
      <dc:date>2022-12-22T09:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract part of a field which has hyphens?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-part-of-a-field-which-has-hyphens/m-p/625163#M51257</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252351"&gt;@SGL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 07:53:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-part-of-a-field-which-has-hyphens/m-p/625163#M51257</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-12-23T07:53:32Z</dc:date>
    </item>
  </channel>
</rss>

