<?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 Getting event data into columns in a report. in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Getting-event-data-into-columns-in-a-report/m-p/470148#M7559</link>
    <description>&lt;P&gt;I have a script that writes data that looks like this to a log file.&lt;/P&gt;
&lt;P&gt;I have this search:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;host=sfo-app-dev-001 terminating OR new_hire OR rehire OR "changes supervisor"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and I get these results:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;"2020-04-08 17:34:53,589:INFO:       User id 135062 (hgevpsar) changes supervisor from klaurns/id=14654 to fakesuper/id=42", ...
...
"2020-04-08 17:34:53,574:INFO:       User id 854526 (loovkosg) changes supervisor from eisetpl/id=446070 to fakesuper/id=42", ...
"2020-04-08 17:34:52,892:INFO:           rehire pabisanh.", ...
...
"2020-04-08 17:34:52,891:INFO:           rehire dadhre.", ...
"2020-04-08 17:34:52,214:INFO:         new_hire grdorimg.", ...
...
"2020-04-08 17:34:52,214:INFO:         new_hire bokdtaua.", ...
"2020-04-08 17:34:51,514:INFO:     terminating hluhsha", ...
...
"2020-04-08 17:34:51,496:INFO:     terminating auamjmo", ...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would like to generate a report that puts the all the terminated users, new hire users, re-hired users and supervisor changes into a report that has columns for the terminated users, new hire, re-hires and supervisor changes.&lt;/P&gt;
&lt;P&gt;(Sorry for the crappy formatting)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  Terminations   New Hires   Re-hires   Super Changes 
| hluhsha    | grdorimg | pabisanh | (hgevpsar) changes supervisor from klaurns/id=14654 to fakesuper/id=42    |
| auamjmo | bokdtaua | wjtorkuo | (forecscf) changes supervisor from bucreah/id=62931 to fakesuper/id=42     |
| arkgmu2i | tsoh | - | (kaprsaer) changes supervisor from cstiobs/id=127168 to fakesuper/id=42    |
| ivargda     | lkrnluei    |                  | (nfntecoo) changes supervisor from arhreinn/id=561422 to fakesuper/id=42 |
|                   | ontaguh   |                  |                                                                                                                                         |
|                   | oaomkha |                  |                                                                                                                                         |
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have tried this search:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;host=sfo-app-dev-001 terminating OR new_hire OR rehire OR "changes supervisor" | table term_users newhires rehires super_changes 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I really do not understand how to create custom fields.&lt;BR /&gt;I have tried to use the "Extract New Fields" wizard but cannot seem to get it to do what I need.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2020 22:50:27 GMT</pubDate>
    <dc:creator>iiooiiooiioo</dc:creator>
    <dc:date>2020-06-08T22:50:27Z</dc:date>
    <item>
      <title>Getting event data into columns in a report.</title>
      <link>https://community.splunk.com/t5/Reporting/Getting-event-data-into-columns-in-a-report/m-p/470148#M7559</link>
      <description>&lt;P&gt;I have a script that writes data that looks like this to a log file.&lt;/P&gt;
&lt;P&gt;I have this search:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;host=sfo-app-dev-001 terminating OR new_hire OR rehire OR "changes supervisor"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and I get these results:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;"2020-04-08 17:34:53,589:INFO:       User id 135062 (hgevpsar) changes supervisor from klaurns/id=14654 to fakesuper/id=42", ...
...
"2020-04-08 17:34:53,574:INFO:       User id 854526 (loovkosg) changes supervisor from eisetpl/id=446070 to fakesuper/id=42", ...
"2020-04-08 17:34:52,892:INFO:           rehire pabisanh.", ...
...
"2020-04-08 17:34:52,891:INFO:           rehire dadhre.", ...
"2020-04-08 17:34:52,214:INFO:         new_hire grdorimg.", ...
...
"2020-04-08 17:34:52,214:INFO:         new_hire bokdtaua.", ...
"2020-04-08 17:34:51,514:INFO:     terminating hluhsha", ...
...
"2020-04-08 17:34:51,496:INFO:     terminating auamjmo", ...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would like to generate a report that puts the all the terminated users, new hire users, re-hired users and supervisor changes into a report that has columns for the terminated users, new hire, re-hires and supervisor changes.&lt;/P&gt;
&lt;P&gt;(Sorry for the crappy formatting)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  Terminations   New Hires   Re-hires   Super Changes 
| hluhsha    | grdorimg | pabisanh | (hgevpsar) changes supervisor from klaurns/id=14654 to fakesuper/id=42    |
| auamjmo | bokdtaua | wjtorkuo | (forecscf) changes supervisor from bucreah/id=62931 to fakesuper/id=42     |
| arkgmu2i | tsoh | - | (kaprsaer) changes supervisor from cstiobs/id=127168 to fakesuper/id=42    |
| ivargda     | lkrnluei    |                  | (nfntecoo) changes supervisor from arhreinn/id=561422 to fakesuper/id=42 |
|                   | ontaguh   |                  |                                                                                                                                         |
|                   | oaomkha |                  |                                                                                                                                         |
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have tried this search:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;host=sfo-app-dev-001 terminating OR new_hire OR rehire OR "changes supervisor" | table term_users newhires rehires super_changes 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I really do not understand how to create custom fields.&lt;BR /&gt;I have tried to use the "Extract New Fields" wizard but cannot seem to get it to do what I need.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 22:50:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Getting-event-data-into-columns-in-a-report/m-p/470148#M7559</guid>
      <dc:creator>iiooiiooiioo</dc:creator>
      <dc:date>2020-06-08T22:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting event data into columns in a report.</title>
      <link>https://community.splunk.com/t5/Reporting/Getting-event-data-into-columns-in-a-report/m-p/470149#M7560</link>
      <description>&lt;P&gt;What connects termination, new hires, and re-hires to super changes?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 19:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Getting-event-data-into-columns-in-a-report/m-p/470149#M7560</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-08T19:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting event data into columns in a report.</title>
      <link>https://community.splunk.com/t5/Reporting/Getting-event-data-into-columns-in-a-report/m-p/470150#M7561</link>
      <description>&lt;P&gt;&lt;CODE&gt;rex&lt;/CODE&gt; can extract new field.&lt;/P&gt;

&lt;P&gt;sample:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="raw
2020-04-08 17:34:53,589:INFO: User id 135062 (hgevpsar) changes supervisor from klaurns/id=14654 to fakesuper/id=42, ...
2020-04-08 17:34:53,574:INFO: User id 854526 (loovkosg) changes supervisor from eisetpl/id=446070 to fakesuper/id=42, ...
2020-04-08 17:34:52,892:INFO: rehire pabisanh., ...
2020-04-08 17:34:52,891:INFO: rehire dadhre., ...
2020-04-08 17:34:52,214:INFO: new_hire grdorimg., ...
2020-04-08 17:34:52,214:INFO: new_hire bokdtaua., ...
2020-04-08 17:34:51,514:INFO: terminating hluhsha, ...
2020-04-08 17:34:51,496:INFO: terminating auamjmo, ..."
| multikv
| rename COMMNET as "this is sample. from here, the logic"
| rex "(?&amp;lt;date&amp;gt;.*):INFO"
| eval _time=strptime(date,"%F %T,%3N")
| rex "(?&amp;lt;status&amp;gt;rehire|new_hire|terminating)\s(?&amp;lt;user&amp;gt;\w+)"
| rex "User id (?&amp;lt;user_id&amp;gt;\d+)\s\((?&amp;lt;user&amp;gt;\w+)\) changes (?&amp;lt;status&amp;gt;supervisor)"
| table _time user status user_id _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....
| stats  values(user) as user count as total  by status
| xyseries total status user
| fields - total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is the report  like this?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 20:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Getting-event-data-into-columns-in-a-report/m-p/470150#M7561</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-08T20:32:16Z</dc:date>
    </item>
  </channel>
</rss>

