<?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: Help with field extraction and table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-and-table/m-p/510840#M143051</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223832"&gt;@splunknoob&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index mongodb* "Couldn't get a connection"
| rex "Error\s+in\s+heartbeat\s+\(requestId:\s+\d+\)\s+to\s+(?&amp;lt;mongo&amp;gt;[^:]+)"
| timechart count BY mongo&lt;/LI-CODE&gt;&lt;P&gt;in this way you can trace all the downs of your systems divided by mongodb.&lt;/P&gt;&lt;P&gt;If you want to check the regex see at&amp;nbsp;&lt;A href="https://regex101.com/r/y67Fa0/1" target="_blank"&gt;https://regex101.com/r/y67Fa0/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 13:08:11 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-07-24T13:08:11Z</dc:date>
    <item>
      <title>Help with field extraction and table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-and-table/m-p/510832#M143048</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone can help me .. I am completely new to Splunk. Although I love it so far I don't really know how to use it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to filter for events only containing mongodbX and Couldn't get a connection.&lt;/P&gt;&lt;P&gt;The event can have mongodb1 or mongodb2 or mongodb3 as in example.&lt;/P&gt;&lt;P&gt;And use the filtered events to build a graph.&lt;/P&gt;&lt;P&gt;Example event:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"time":"2020-07-24T11:48:21.18957143Z","event":"2020-07-24T11:48:21.189+0000 I REPL_HB  [replexec-949] Error in heartbeat (requestId: 649360) to mongodb3:27017, response status: NetworkInterfaceExceededTimeLimit: Couldn't get a connection within the time limit\n","hostname":"node2"}&lt;/LI-CODE&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 12:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-and-table/m-p/510832#M143048</guid>
      <dc:creator>splunknoob</dc:creator>
      <dc:date>2020-07-24T12:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction and table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-and-table/m-p/510835#M143049</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223832"&gt;@splunknoob&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;at first follow the Splunk Free corses&amp;nbsp; (&lt;A href="https://www.splunk.com/en_us/training/free-courses/splunk-fundamentals-1.html" target="_blank"&gt;https://www.splunk.com/en_us/training/free-courses/splunk-fundamentals-1.html&lt;/A&gt;) and The Splunk search Tutorial (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchTutorial/WelcometotheSearchTutorial" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchTutorial/WelcometotheSearchTutorial&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Anyway, you have two ways to search in Splunk:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;full text search: in other words, using Splunk as Google search inserting the words to search;&lt;/LI&gt;&lt;LI&gt;structured search: extract fields and search on fields, it's faster than the other but it requests more work.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In your sample you can use the first:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index mongodb* "Couldn't get a connection"
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 12:17:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-and-table/m-p/510835#M143049</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-07-24T12:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction and table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-and-table/m-p/510839#M143050</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply and help. Really appreciate it.&lt;/P&gt;&lt;P&gt;I will definitely take the fundamentals course.&lt;/P&gt;&lt;P&gt;Your suggestion works and I only see events with what I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;Could someone please help me with next part?&lt;/P&gt;&lt;P&gt;I need to build a graph when mongodb1 or 2 or 3 goes down.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 12:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-and-table/m-p/510839#M143050</guid>
      <dc:creator>splunknoob</dc:creator>
      <dc:date>2020-07-24T12:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction and table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-and-table/m-p/510840#M143051</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223832"&gt;@splunknoob&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index mongodb* "Couldn't get a connection"
| rex "Error\s+in\s+heartbeat\s+\(requestId:\s+\d+\)\s+to\s+(?&amp;lt;mongo&amp;gt;[^:]+)"
| timechart count BY mongo&lt;/LI-CODE&gt;&lt;P&gt;in this way you can trace all the downs of your systems divided by mongodb.&lt;/P&gt;&lt;P&gt;If you want to check the regex see at&amp;nbsp;&lt;A href="https://regex101.com/r/y67Fa0/1" target="_blank"&gt;https://regex101.com/r/y67Fa0/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 13:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-and-table/m-p/510840#M143051</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-07-24T13:08:11Z</dc:date>
    </item>
  </channel>
</rss>

