<?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 the keywords from raw logs in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650584#M53331</link>
    <description>&lt;P&gt;&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;I just want file name&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;2023-06-29&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;09:41:53.884&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;] [&lt;/SPAN&gt;&lt;SPAN class=""&gt;pool-2-thread-1&lt;/SPAN&gt;&lt;SPAN&gt;]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArchivalProcessor&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;finished reading file&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;/absin/&lt;STRONG&gt;TRIM.ARCH.D062923.T052525&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;with this query :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;index="600000304_d_gridgain_idx*" sourcetype=600000304_gg_abs_ipc2 source!="/var/log/messages" "finished reading file"&lt;BR /&gt;| rex "-\s+(?&amp;lt;message&amp;gt;.*)"&lt;BR /&gt;| rex "\/(?&amp;lt;message1&amp;gt;.+)$"&lt;BR /&gt;| eval message=if(match(message,"finished reading file%"),message1,message)&lt;BR /&gt;| stats count by message1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;I am getting result like this:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;&lt;SPAN&gt;absin/TRIM.ARCH.D062223.T081112&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 15:19:47 GMT</pubDate>
    <dc:creator>aditsss</dc:creator>
    <dc:date>2023-07-14T15:19:47Z</dc:date>
    <item>
      <title>How to fetch the keywords from raw logs?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650563#M53322</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;How we can fetch the below keywords from raw logs:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;2023-06-29&lt;/SPAN&gt; &lt;SPAN class=""&gt;09:41:53.884&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class=""&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt; ] [&lt;/SPAN&gt;&lt;SPAN class=""&gt;pool-2-thread-1&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;ArchivalProcessor&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;finished reading file&lt;/SPAN&gt; &lt;SPAN class=""&gt;/absin/&lt;STRONG&gt;TRIM.ARCH.D062923.T052525&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;2023-07-13 02:42:02.915 [INFO ] [pool-2-thread-1] FileSensor -&lt;STRONG&gt; Start Reading Account balance Data File, QACDU.D062623.T065000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;2023-07-13 18:53:10.226 [INFO ] [pool-5-thread-1] FileSensor - &lt;STRONG&gt;Completed Account balance file processing, QACDU.D062623.T065000 records processed: 105932244, Kafka counter: 0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 18:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650563#M53322</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2023-07-17T18:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the keywords from raw logs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650568#M53324</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225066"&gt;@aditsss&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry but it isn't clear the rule of your extraction: do you want the string after the minus sign?&lt;/P&gt;&lt;P&gt;If this is your requirement, please try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "-\s+(?&amp;lt;message&amp;gt;.*)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/JUWcZh/1" target="_blank"&gt;https://regex101.com/r/JUWcZh/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 14:01:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650568#M53324</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-14T14:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the keywords from raw logs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650571#M53325</link>
      <description>&lt;P&gt;&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;For this particular logger I just need file name:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;2023-06-29&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;09:41:53.884&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;] [&lt;/SPAN&gt;&lt;SPAN class=""&gt;pool-2-thread-1&lt;/SPAN&gt;&lt;SPAN&gt;]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArchivalProcessor&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;finished reading file&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;/absin/&lt;STRONG&gt;TRIM.ARCH.D062923.T052525&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;How Can I fetch it.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 14:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650571#M53325</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2023-07-14T14:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the keywords from raw logs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650575#M53326</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225066"&gt;@aditsss&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "-\s+(?&amp;lt;message&amp;gt;.*)"
| rex "\/(?&amp;lt;message1&amp;gt;.+)$
| eval message=if(match(message,"finished reading file%",message1,message)&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 14:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650575#M53326</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-14T14:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the keywords from raw logs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650577#M53328</link>
      <description>&lt;P&gt;&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;I tried this:&lt;/P&gt;&lt;P&gt;index="600000304_d_gridgain_idx*" sourcetype=600000304_gg_abs_ipc2 source!="/var/log/messages" "finished reading file"&lt;BR /&gt;| rex "-\s+(?&amp;lt;message&amp;gt;.*)" | rex "\/(?&amp;lt;message1&amp;gt;.+)$"|eval message=if(match(message,"finished reading file%",message1,message))|stats count by message1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;getting this result:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in 'EvalCommand': The arguments to the 'match' function are invalid.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 14:22:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650577#M53328</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2023-07-14T14:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the keywords from raw logs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650579#M53330</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225066"&gt;@aditsss&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;change parenthesis and use message not message1:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="600000304_d_gridgain_idx*" sourcetype=600000304_gg_abs_ipc2 source!="/var/log/messages" "finished reading file"
| rex "-\s+(?&amp;lt;message&amp;gt;.*)" 
| rex "\/(?&amp;lt;message1&amp;gt;.+)$"
| eval message=if(match(message,"finished reading file%"),message1,message)
| stats count by message&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 14:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650579#M53330</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-14T14:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the keywords from raw logs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650584#M53331</link>
      <description>&lt;P&gt;&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;I just want file name&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;2023-06-29&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;09:41:53.884&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;] [&lt;/SPAN&gt;&lt;SPAN class=""&gt;pool-2-thread-1&lt;/SPAN&gt;&lt;SPAN&gt;]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArchivalProcessor&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;finished reading file&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;/absin/&lt;STRONG&gt;TRIM.ARCH.D062923.T052525&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;with this query :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;index="600000304_d_gridgain_idx*" sourcetype=600000304_gg_abs_ipc2 source!="/var/log/messages" "finished reading file"&lt;BR /&gt;| rex "-\s+(?&amp;lt;message&amp;gt;.*)"&lt;BR /&gt;| rex "\/(?&amp;lt;message1&amp;gt;.+)$"&lt;BR /&gt;| eval message=if(match(message,"finished reading file%"),message1,message)&lt;BR /&gt;| stats count by message1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;I am getting result like this:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;&lt;SPAN&gt;absin/TRIM.ARCH.D062223.T081112&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 15:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650584#M53331</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2023-07-14T15:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the keywords from raw logs</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650673#M53332</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225066"&gt;@aditsss&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as I said, use message, not message1 in the stats command, anyeay, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="600000304_d_gridgain_idx*" sourcetype=600000304_gg_abs_ipc2 source!="/var/log/messages" "finished reading file"
| rex "-\s+(?&amp;lt;message&amp;gt;.*)" 
| rex "\/\w+\/(?&amp;lt;message1&amp;gt;.*)$"
| eval message=if(match(message,"finished reading file%"),message1,message)
| stats count by message&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 09:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-fetch-the-keywords-from-raw-logs/m-p/650673#M53332</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-15T09:06:24Z</dc:date>
    </item>
  </channel>
</rss>

