<?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 fetch string in splunk in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-string-in-splunk/m-p/602329#M49484</link>
    <description>&lt;LI-CODE lang="markup"&gt;| rex "event-type:(?&amp;lt;eventType&amp;gt;.+)"&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 19 Jun 2022 07:00:05 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-06-19T07:00:05Z</dc:date>
    <item>
      <title>How to fetch string in splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-string-in-splunk/m-p/602328#M49483</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have below sets of raw logs:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;source-timestamp&lt;SPAN&gt;=&lt;/SPAN&gt;1655611288414,event-type:&lt;STRONG&gt;Lead_Staging_&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;_&lt;SPAN class=""&gt;c&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;source-timestamp&lt;SPAN&gt;=&lt;/SPAN&gt;1655611288414,event-type:&lt;STRONG&gt;Account_Snapshot__c&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;source-timestamp&lt;SPAN&gt;=&lt;/SPAN&gt;1655611288414,event-type:&lt;STRONG&gt;Opp&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;I want to fetch all the event -type.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Can someone guide me.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 06:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-string-in-splunk/m-p/602328#M49483</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2022-06-19T06:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch string in splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-string-in-splunk/m-p/602329#M49484</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "event-type:(?&amp;lt;eventType&amp;gt;.+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 19 Jun 2022 07:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-string-in-splunk/m-p/602329#M49484</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-19T07:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch string in splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-string-in-splunk/m-p/602331#M49485</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its not showing the correct way.&lt;/P&gt;&lt;P&gt;My entire query is this&lt;/P&gt;&lt;P&gt;index=abc ns=blazepsfpublish app_name=pulldataoneforce* "The Total Process Time to publish in Kafka topic is" | rex "event-type:(?&amp;lt;eventType&amp;gt;.+)"| rename eventType as event-type|eval Date=strftime(_time, "%Y-%m-%d") | timechart span=1d count(source_uniqueid) as "The Total Process Time to publish in Kafka topic is" by event-type&lt;/P&gt;&lt;P&gt;I have attached the screenshot to show how it is coming&lt;/P&gt;&lt;P&gt;These are my raw logs&lt;/P&gt;&lt;P&gt;source-uniqueid=cdc3bcb5-9ad4-46a9-92dc-4c84b081ab3b, source-timestamp=1655646610318,event-type:Lead_Staging__c, source-type:OneForce, memsql-persist:true, channel:/event/tel_External_Change_Event__e, replayId:14522702, The Total Process Time to publish in Kafka topic is (milli-sec)=7&lt;/P&gt;&lt;P&gt;Can you please guide&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 08:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-string-in-splunk/m-p/602331#M49485</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2022-06-19T08:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch string in splunk</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-string-in-splunk/m-p/602332#M49486</link>
      <description>&lt;P&gt;The previous rex worked with the examples you gave - because these examples were incomplete w.r.t. your actual events, it didn't work for your real event.&lt;/P&gt;&lt;P&gt;Assuming that the new examples are an accurate representation of your real events, try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "event-type:(?&amp;lt;eventType&amp;gt;[^,]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 19 Jun 2022 08:12:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-string-in-splunk/m-p/602332#M49486</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-19T08:12:24Z</dc:date>
    </item>
  </channel>
</rss>

